// Use this for initialization protected virtual void Start() { if (hasMotor) { motor = GetComponent <CoreMotor>(); } }
// Use this for initialization protected override void Start() { motor = GetComponent <CoreMotor>(); stats = GetComponent <CoreStats>(); base.Start(); }