Example #1
0
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <BallRoll>(); //Calls apon the player (Ball) class
 }
Example #2
0
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <BallRoll>();  //This allows the console to know where to get the infomation for the player, this will get the health of the player.
 }