protected override void UpdateActivity() { if (this.m_ChallengeGroup) { return; } float maxValue = float.MaxValue; AIPathPoint closestPathPoint = this.GetClosestPathPoint(out maxValue); if (closestPathPoint && maxValue >= HumanAIGroupManager.Get().m_DeactivationDistance) { base.Deactivate(); } }
protected virtual void UpdateActivity() { if (this.m_ChallengeGroup) { return; } float maxValue = float.MaxValue; HumanAI closestMember = this.GetClosestMember(out maxValue); if (closestMember && maxValue >= HumanAIGroupManager.Get().m_DeactivationDistance) { this.Deactivate(); } }
private bool ShouldSpawnWave() { return(HumanAIGroupManager.Get() && GreenHellGame.Instance.m_GameDifficulty == GameDifficulty.Hard && !this.m_BlockSpawnWaves && BalanceSystem.Get().CanSpawnHumanAIWave()); }
private void OnDestroy() { HumanAIGroup.s_AIGroups.Remove(this); HumanAIGroupManager.Get().OnDestroyGroup(this); }