Пример #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 <animationSprite> ();
     Horizontal = "Horizontal" + Player;
     Vertical   = "Vertical" + Player;
     Fire1      = "Fire1" + Player;
     Fire2      = "Fire2" + Player;
     Fire3      = "Fire3" + Player;
 }
Пример #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 <animationSprite> ();
     spriteRenderer = GetComponent <SpriteRenderer> ();
     rb2d           = GetComponent <Rigidbody2D> ();
     Horizontal     = "Horizontal" + Player;
     Vertical       = "Vertical" + Player;
     Fire1          = "Fire1" + Player;
     Fire2          = "Fire2" + Player;
     Fire3          = "Fire3" + Player;
     Parade         = "Parade" + Player;
     isAction       = false;
 }
 // Use this for initialization
 void Start()
 {
     anim = GetComponent <animationSprite> ();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     ac        = GetComponent <animationSprite> ();
     positionZ = positionZ == -8000 ? transform.position.y : positionZ;
 }