Exemplo n.º 1
0
 public void Disruption()
 {
     if (number < 7)
     {
         GameObject newObject  = Instantiate(gameObject, transform.position, transform.rotation) as GameObject;
         GameObject newObject2 = Instantiate(gameObject, transform.position, transform.rotation) as GameObject;
         newObject.GetComponent <Ball>().StartMove();
         newObject2.GetComponent <Ball>().StartMove();
         GameStatic.SetBalls((byte)(GameStatic.GetBalls() + 2));
     }
 }
Exemplo n.º 2
0
 void OnDestroy()
 {
     --number;
     GameStatic.SetBalls(GameStatic.GetBalls() - 1);
 }