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(); }
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(); }