コード例 #1
0
 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");
     }
 }
コード例 #2
0
        private void OnNpcDieEvent(NpcDieEvent Event)
        {
            if (Event.Master.Team != CombatTeam.A)
            {
                return;
            }

            if (Current_ != null && Current_.ID == Event.Master.ID)
            {
                SetCurrent(null);
            }
            else
            {
                Refresh();
            }
        }
コード例 #3
0
        private void OnNpcDieEvent(NpcDieEvent Event)
        {
            if (Event.Master.Team == CombatTeam.B)
            {
                if (RemainingCount_ > 0)
                {
                    RemainingCount_--;

                    if (RemainingCount_ == 0)
                    {
                        IsAlive = false;
                    }
                }

                EventManager.Send <WaveChangeEvent>();
            }
        }