Exemplo n.º 1
0
 // 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>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     enemAI = GetComponent <AIPath>();
     anim   = GetComponent <animHandler>();
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     playerMov = GameObject.FindGameObjectWithTag("Player").GetComponent <playerMovement>();
     anim      = GetComponent <animHandler>();
 }