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