public static void OnLoadStart() { LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown); Scenes.GoToScene(Scenes.Types.Start); Server.Report(Server.ReportComands.RestartLevel); }
public static void OnLoadLevel() { if (Scenes.PreviousScene == Scenes.Types.Result) { LevelPlayground.Resetlevels(); } Scenes.GoToScene(Scenes.Types.Level); }
public static void OnContinueLevelByMoney() { GameData.ReduceCurrency(Configs.Balance.PaymentForContinue); LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown); Server.Report(Server.ReportComands.NextLevelByMoney); Scenes.GoToScene(Scenes.Types.Level); }
public static void OnContinueLevel() { LevelPlayground.Resetlevels(); LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown); Server.Report(Server.ReportComands.NextLevel); Scenes.GoToScene(Scenes.Types.Level); }
public static void OnExitShop() { var scene = Scenes.PreviousScene; var args = new Dictionary <string, string>(); args.Add("in", "false"); Server.Report(Server.ReportComands.ShopVisit, args); if (scene == Scenes.Types.Result) { Scenes.GoToScene(Scenes.Types.Result); } else if (scene == Scenes.Types.Start) { Scenes.GoToScene(Scenes.Types.Start); } }
public static void OnLoadShop() { Scenes.GoToScene(Scenes.Types.Shop); }