示例#1
0
 private void GameLogicInit()
 {
     exits      = GameObject.FindGameObjectsWithTag("Exit");
     ballsToUse = 0;
     foreach (GameObject exit in exits)
     {
         Exit exit_ = exit.GetComponent <Exit>();
         ballsToUse += exit_.Capacity();
         exit_.ballAndExitCollision.AddListener(CollisionHandle);
         Debug.Log("level gen init");
     }
 }