// Start is called before the first frame update
 void Start()
 {
     Physics2D.IgnoreLayerCollision(8, 11);
     player      = GameObject.FindGameObjectWithTag("Player");
     playerState = player.GetComponent <playerBase>();
     playerMov   = player.GetComponent <playerMovement>();
     anim        = GetComponent <animHandler>();
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     enemAI = GetComponent <AIPath>();
     anim   = GetComponent <animHandler>();
 }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     playerMov = GameObject.FindGameObjectWithTag("Player").GetComponent <playerMovement>();
     anim      = GetComponent <animHandler>();
 }