예제 #1
0
        private void onEnd(Combat.CombatMode.EUserGameState state)
        {
            string winnerName = null;

            switch (state)
            {
            case Combat.CombatMode.EUserGameState.Win:
                winnerName            = _userName;
                _userFirstResultLines = Def.EXAM_USER_WIN;
                _rivalResultLines     = _exam.RivalLose;
                _userResultLines      = _exam.UserWin;
                break;

            case Combat.CombatMode.EUserGameState.Lose:
                winnerName            = _rivalName;
                _userFirstResultLines = Def.EXAM_USER_LOSE;
                _rivalResultLines     = _exam.RivalWin;
                _userResultLines      = _exam.UserLose;
                break;

            default:
                Log.Error(string.Format("invalid user game state: {0}", state));
                break;
            }

            string resultMsg = string.Format(_exam.NPCEndWinnerName, winnerName);

            DialogueEvent.Invoke(NPCId, resultMsg);
        }
예제 #2
0
    private void onEnd(Combat.CombatMode.EUserGameState state)
    {
        switch (state)
        {
        case Combat.CombatMode.EUserGameState.Win:
            win();
            break;

        case Combat.CombatMode.EUserGameState.Lose:
            lose();
            break;

        case Combat.CombatMode.EUserGameState.Unknown:
            Log.Error("unknown game state");
            return;
        }

        show(end);
    }
예제 #3
0
    private void onEnd(Combat.CombatMode.EUserGameState state)
    {
        hideTexts();

        switch (state)
        {
        case Combat.CombatMode.EUserGameState.Win:
            setPlayerNameText(_userName);
            setPlayerNameColor(UserPlayerNameTextColor);
            break;

        case Combat.CombatMode.EUserGameState.Lose:
            setPlayerNameText(_aiName);
            setPlayerNameColor(AIPlayerNameTextColor);
            break;

        default:
            return;
        }

        setSuffixText(Def.COMBAT_COMMENT_WINNER);

        showTexts();
    }
예제 #4
0
    private void onEnd(Combat.CombatMode.EUserGameState state)
    {
        CombatPlayer p = Manager.Instance.DT.CombatPlayer[_player.Id];

        set(p.idle);
    }