示例#1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.transform.tag == Utilities.Constants.TagBall)
     {
         if (WallState == Utilities.WallState.Creating)
         {
             if (wallCreation == null)
             {
                 wallCreation = FindObjectOfType <WallCreationScript>();
             }
             wallCreation.SetWallHittedOnCreation(gameObject);
         }
     }
 }
示例#2
0
 private void Start()
 {
     wallCreation = GetComponent <WallCreationScript>();
     ballManagers = new List <BallManager>();
 }