Exemplo n.º 1
0
        protected virtual void OnIngameResult(GameResultParamsBase resultParameterBase)
        {
            Ingame.Close();
            director.UiIngameStateUpdate(resultParameterBase.HasWon);
            var result = new UIResultParamsBase("Level 2-3", resultParameterBase.HasWon ? "Success" : "Failed", "High score: 3500", "2000",
                                                resultParameterBase.HasWon, false);

            Endgame.SetResult(result);
            Endgame.Open();
        }
Exemplo n.º 2
0
    private void OnIngameUIResult(bool isSuccessful)
    {
        Ingame.Close();
        director.UiIngameStateUpdate(isSuccessful);
        var result = new ResultParams("Level 2-3", isSuccessful ? "Success" : "Failed", "High score: 3500", "2000",
                                      isSuccessful, false);

        Endgame.SetResult(result);
        Endgame.Open();
    }