Ejemplo n.º 1
0
    private IEnumerator ShowEndScreen(EndCondition condition, float timeDelay)
    {
        yield return(new WaitForSeconds(timeDelay));

        string resultText    = "WHAT";
        string conditionText = "?????????";
        bool   didWin        = true;

        switch (condition)
        {
        case EndCondition.WinPlayerEscape:
            resultText    = "YOU WIN";
            conditionText = "running away is, contrary to popular opinion, a valid solution";
            didWin        = true;
            break;

        case EndCondition.WinGeneralKilled:
            resultText    = "YOU WIN";
            conditionText = "i guess finishing the job you were assigned works too";     //report bard for stealing my kill smh
            didWin        = true;
            break;

        case EndCondition.LosePlayerKilled:
            resultText    = "YOU LOSE";
            conditionText = "how can you eat more cookies if you're dead";
            didWin        = false;
            break;
        }

        endScreenController?.Show(resultText, conditionText, didWin);
    }