Esempio n. 1
0
 private void TurnOffIsSkillActive()
 {
     //if the ballmanager checks that there are no multiballs, the state of the skill turns off
     if (!ballManager.CheckForMultiBalls())
     {
         IsSkillActive = false;
     }
 }
Esempio n. 2
0
 private void OnCollisionEnter(Collision collision)
 {
     if (ball.layer == ballMask)
     {
         if (!ballManager.CheckForMultiBalls())
         {
             RespawnBall(ball);
         }
         else
         {
             if (collision.gameObject != ball)
             {
                 GameObject.Destroy(collision.gameObject);
             }
             ballManager.RemoveBallInPlayFromCounter();
         }
     }
 }