Exemplo n.º 1
0
 /**
  * If the user clicks the use now button, then apply the ball power to the player
  *
  */
 public void useNowClick()
 {
     Debug.Log("Transforming into a ball...");
     ball = GameObject.Find("ballPower").GetComponent <Power>();
     ball.ApplyPower();
     Destroy(GameObject.Find("ballPower"));
 }