예제 #1
0
 private void InitMotorController()
 {
     // Get MotorController component
     motorController = gameObject.GetComponent <MotorController>();
     if (motorController == null)
     {
         Debug.Log("Cannot find the motorController");
         // TODO:Show something and then quit
         Application.LoadLevel(3);
     }
     motorController.SetGameStateManager(this);
     Debug.Log("Get motorController success");
 }