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