Exemple #1
0
 void Start()
 {
     wolf    = (Wolf_LP)GameManager_LP.Instance.wolf;
     chicken = (Chicken_LP)GameManager_LP.Instance.chicken;
     cabbage = (Cabbage_LP)GameManager_LP.Instance.cabbage;
     player  = Player_LP.Instance;
     InvokeRepeating("CheckSuccessAndFailure", 20.0f, 20.0f);
 }
Exemple #2
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(Instance);
     }
 }