GameFramework.Scene.TryAllKilledOrAllDied C# (CSharp) 메소드

TryAllKilledOrAllDied() 개인적인 메소드

private TryAllKilledOrAllDied ( bool tryAllKilled, bool tryAllDied ) : void
tryAllKilled bool
tryAllDied bool
리턴 void
        private void TryAllKilledOrAllDied(bool tryAllKilled, bool tryAllDied)
        {
            if (tryAllKilled) {
                int leftEnemyCt = GetBattleNpcCount((int)CampIdEnum.Blue, CharacterRelation.RELATION_ENEMY) + GetDyingBattleNpcCount((int)CampIdEnum.Blue, CharacterRelation.RELATION_ENEMY);
                if (leftEnemyCt <= 0) {
                    m_StorySystem.SendMessage("all_killed");
                }
            }
            if (tryAllDied) {
                int leftFriendCt = GetBattleNpcCount((int)CampIdEnum.Blue) + GetDyingBattleNpcCount((int)CampIdEnum.Blue);
                if (leftFriendCt <= 0) {
                    m_StorySystem.SendMessage("all_died");
                }
            }
        }