예제 #1
0
    void CalculateMatchResult()
    {
        int matchIndex = maleCommand * 5 + femaleCommand;
        var matchInfo  = matchTable[matchIndex];
        int deltaDir   = matchInfo.IsSuccess ? 1 : -1;

        currentScore += deltaDir * TurnScore;
        currentTurn++;

        gameView.Rpc_ShowMatchResult(matchIndex, matchInfo.IsSuccess, matchInfo.SkillName, currentScore, currentTurn, MaxTurnCount);

        StartCoroutine(DelayTurnStart());
    }