Example #1
0
 // Use this for initialization
 void Start()
 {
     // Récupère une référence au script AnimationCourse attaché au même GameObject
     ac         = GetComponent <AnimationCourse> ();
     Horizontal = "Horizontal" + Player;
     Vertical   = "Vertical" + Player;
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     // Récupère une référence au script AnimationCourse attaché au même GameObject
     ac = GetComponent <AnimationCourse> ();
     rb = GetComponent <Rigidbody2D> ();
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     ac = GetComponent <AnimationCourse>();
 }