コード例 #1
0
 // Use this for initialization
 protected virtual void Start()
 {
     if (hasMotor)
     {
         motor = GetComponent <CoreMotor>();
     }
 }
コード例 #2
0
 // Use this for initialization
 protected override void Start()
 {
     motor = GetComponent <CoreMotor>();
     stats = GetComponent <CoreStats>();
     base.Start();
 }