public override void OnAgentRemoved(
            Agent affectedAgent,
            Agent affectorAgent,
            AgentState agentState,
            KillingBlow killingBlow)
        {
            VictoryComponent component = affectedAgent.GetComponent <VictoryComponent>();

            if (component == null)
            {
                return;
            }
            affectedAgent.RemoveComponent((AgentComponent)component);
        }
 private void CheckAnimationAndVoice()
 {
     for (int index = 0; index < this.Mission.Agents.Count; ++index)
     {
         Agent            agent     = this.Mission.Agents[index];
         VictoryComponent component = agent.GetComponent <VictoryComponent>();
         if (component != null && component.CheckTimer())
         {
             bool resetTimer;
             this.ChooseWeaponToCheerWithCheerAndUpdateTimer(agent, out resetTimer);
             if (resetTimer)
             {
                 component.ChangeTimerDuration(6f, 12f);
             }
         }
     }
 }