void OnLand() { if (state == FlareeState.LAUNCH) { state = FlareeState.HUNT; Flip(); attackDelayTimer = 0; } }
void Hunt() { if (attackDelayTimer < attackDelay) { attackDelayTimer += Time.deltaTime; } bool canSeePlayer = CanSeePlayer(); if (attackDelayTimer >= attackDelay && canSeePlayer && GetPlayerDist() > attackRange) { state = FlareeState.LAUNCH; m_Launched = false; } else { Roam(canSeePlayer); } }