Beispiel #1
0
 void Start()
 {
     Vie            = 3;
     regardeGauche  = true;
     AutoriseMarche = true;
     personnage     = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     corpsVroum     = GetComponent <Rigidbody2D>();
     collisionVroum = GetComponent <Collider2D>();
     perso          = GameObject.FindGameObjectWithTag("Player").GetComponent <Shinibuta>();
 }
Beispiel #2
0
 void Start()
 {
     vaVersCible    = true;
     explosion      = Resources.Load("Explosion/" + nomAnim, typeof(GameObject)) as GameObject;
     bossMan        = FindObjectOfType <BossManager>();
     vitesseTourner = 600f;
     personnage     = FindObjectOfType <Shinibuta>();
     boss           = cible = GameObject.FindGameObjectWithTag("Boss").transform;
     cible          = GameObject.FindGameObjectWithTag("Player").transform;
     rbMissile      = GetComponent <Rigidbody2D>();
 }
Beispiel #3
0
 void Start()
 {
     vie            = vieMax;
     tempsSaut      = 3;
     vitY           = 500 * Time.deltaTime;
     Shinibuta      = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     perso          = GameObject.FindGameObjectWithTag("Player").GetComponent <Shinibuta>();
     slimeAnim      = GetComponent <Animator>();
     slimeRigidbody = GetComponent <Rigidbody2D>();
     slimeCollider  = GetComponent <Collider2D>();
     slimeRigidbody.angularVelocity = 0;
 }
Beispiel #4
0
 void Start()
 {
     personnage      = FindObjectOfType <Shinibuta>();
     explosion       = Resources.Load("Explosion/" + nomAnim, typeof(GameObject)) as GameObject;
     collPetiteBombe = GetComponent <Collider2D>();
 }