Exemple #1
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player");
     ball   = GameObject.FindGameObjectWithTag("ball");
     r      = GetComponent <Rigidbody> ();
     ball_r = ball.GetComponent <Rigidbody> ();
     roll   = ball.GetComponent <BoulderRoll> ();
     CHANGESTATE_Idle();
 }
 // Use this for initialization
 void Start()
 {
     roll = GameObject.FindGameObjectWithTag("ball").GetComponent <BoulderRoll> ();
 }