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>(); }
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>(); }
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; }
void Start() { personnage = FindObjectOfType <Shinibuta>(); explosion = Resources.Load("Explosion/" + nomAnim, typeof(GameObject)) as GameObject; collPetiteBombe = GetComponent <Collider2D>(); }