private void Start() { instance = this; controllerCollider = GetComponent <CharacterController>(); track = TrackAbstract.GetInstance(); }
public static MotorController GetInstance() { return(instance ?? (instance = FindObjectOfType(typeof(MotorController)) as MotorController)); }