private void Wander() { if (ai.CanSeeTarget(targetMask)) { target = ai.GetCurrentTarget(); curState = EnemyStates.Engaging; } else { movement.MoveTowards(spawnPoint); } }