Exemplo n.º 1
0
 void Start()
 {
     plr        = GameObject.FindGameObjectWithTag("Player");
     plrH       = plr.GetComponent <playerHealth>();
     anim       = this.gameObject.GetComponent <Animator>();
     gm         = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager>();
     enemyMove  = GetComponentInParent <enemymovement>();
     playerMove = plr.GetComponent <Player>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     currenthealth = Enemymaxhealth;
     spwn          = GameObject.FindGameObjectWithTag("SkelSpawner").GetComponent <MainSpawner>();
     collider      = GetComponent <Collider2D>();
     dropAmount    = Random.Range(minDrop, maxDrop);
     anim          = this.gameObject.GetComponent <Animator>();
     move          = this.gameObject.GetComponent <enemymovement>();
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     enemyscript = enemy.GetComponent <enemymovement>();
 }