void Start()
 {
     meshRenderer   = gameObject.GetComponentInChildren <MeshRenderer>();
     normalMaterial = meshRenderer.material;
     status         = gameObject.GetComponent <EnemyBaseStatus>();
     freezableEnemy = gameObject.GetComponent <FreezableEnemy>();
 }
Beispiel #2
0
 void Start()
 {
     status   = gameObject.GetComponent <EnemyBaseStatus>();
     navAgent = gameObject.GetComponent <NavMeshAgent>();
     player   = GameObject.FindGameObjectWithTag(Helpers.Tags.Player).transform;
     navAgent.Stop();
 }
 void Start()
 {
     status      = gameObject.GetComponent <EnemyBaseStatus>();
     navAgent    = gameObject.GetComponent <NavMeshAgent>();
     player      = GameObject.FindGameObjectWithTag(Helpers.Tags.Player).transform;
     spellSource = this.gameObject.FindObjectInChildren("SpellSource").transform;
     navAgent.Stop();
 }
Beispiel #4
0
 protected override void Start()
 {
     base.Start();
     status = GetComponent <EnemyBaseStatus>();
 }
 void Start()
 {
     status = gameObject.GetComponent <EnemyBaseStatus>();
 }