Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     canBerseker = true;
     health      = GetComponent <EnemiesHealth>();
     state       = State.None;
     animator    = GetComponent <Animator>();
     StartCoroutine(FakeUpdate());
     StartCoroutine(FoiceAttackCO());
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     life      = GetComponent <EnemiesHealth>();
     alive     = true;
     followAtk = false;
     healthRef = GetComponent <EnemiesHealth>();
     target    = FindObjectOfType <NewPlayer>().gameObject;
     animator  = GetComponent <Animator>();
     StartCoroutine(FakeUpdate());
     Invoke("CdAtk", 1f);
 }