private void Start() { _agent = GetComponent <NavMeshAgent>(); _myStats = GetComponent <EnemyStats>(); _anim = GetComponent <Animator>(); _healthCanvas = GetComponentInChildren <HealthCanvasController>(); StartCoroutine(FindWall()); }
private void Start() { _agent = GetComponent <NavMeshAgent>(); _anim = GetComponent <Animator>(); _healthCanvas = GetComponentInChildren <HealthCanvasController>(); _cam = Camera.main; _lineLeft = attackLasers[0]; _lineRight = attackLasers[1]; _enemyMask = LayerMask.GetMask("Default", "Enemy"); _wallMask = LayerMask.GetMask("Default", "Wall"); }
private void Start() { _myStats = GetComponent <WallStats>(); _healthCanvas = GetComponentInChildren <HealthCanvasController>(); }