private static void OnNpcDieEvent(NpcDieEvent Event) { if (Event.Master.Team == CombatTeam.B) { AddGem((int)Event.Master.CalcFinalAttr(NpcAttrIndex.Gem)); SfxManager.PlayNpcSfx(Event.Master, true, "prefabs/sfx/goldsfx.prefab"); } }
private void OnNpcDieEvent(NpcDieEvent Event) { if (Event.Master.Team != CombatTeam.A) { return; } if (Current_ != null && Current_.ID == Event.Master.ID) { SetCurrent(null); } else { Refresh(); } }
private void OnNpcDieEvent(NpcDieEvent Event) { if (Event.Master.Team == CombatTeam.B) { if (RemainingCount_ > 0) { RemainingCount_--; if (RemainingCount_ == 0) { IsAlive = false; } } EventManager.Send <WaveChangeEvent>(); } }