public void OnDestroyAI(AI ai) { if (ai.IsDead()) { this.m_BlockedCount++; } this.m_CurrentCount--; }
public void OnDestroyAI(AI ai) { if (ai.IsDead()) { this.m_CurrentMaxCount--; if (this.m_TimeToAddMaxCount <= 0f) { this.m_TimeToAddMaxCount = this.m_Cooldown; } } this.m_CurrentCount--; }
public void OnDestroyAI(AI ai) { if (this.m_SpawnersGroup) { this.m_SpawnersGroup.OnDestroyAI(ai); } if (ai.IsDead()) { this.m_BlockedCount++; } this.m_AIs.Remove(ai); this.m_AICount--; }
public void OnDeactivatePredator(AI ai) { if (!this.m_ActivePredator) { if (!ai.IsDead()) { Debug.Log("OnDeactivatePredator - Inactive predator!"); } return; } if (this.m_ActivePredator == ai) { this.m_ActivePredator = null; this.m_TimeToNextSpawnPredator = this.m_PredatorSpawnCooldown; } }
public void OnDestroyAI(AI ai) { if (this.m_SpawnersGroup) { this.m_SpawnersGroup.OnDestroyAI(ai); } for (int i = 0; i < this.m_AIDatas.Count; i++) { AISpawnData aispawnData = this.m_AIDatas[i]; if (aispawnData.m_AI == ai) { aispawnData.m_AI = null; aispawnData.m_TimeToNextSpawn = ((!ai.IsDead()) ? 0f : this.m_ResetTime); break; } } this.m_AICount--; }