示例#1
0
        public static void OnLoadStart()
        {
            LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown);
            Scenes.GoToScene(Scenes.Types.Start);

            Server.Report(Server.ReportComands.RestartLevel);
        }
示例#2
0
        public static void OnLoadLevel()
        {
            if (Scenes.PreviousScene == Scenes.Types.Result)
            {
                LevelPlayground.Resetlevels();
            }

            Scenes.GoToScene(Scenes.Types.Level);
        }
示例#3
0
        public static void OnContinueLevelByMoney()
        {
            GameData.ReduceCurrency(Configs.Balance.PaymentForContinue);
            LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown);

            Server.Report(Server.ReportComands.NextLevelByMoney);

            Scenes.GoToScene(Scenes.Types.Level);
        }
示例#4
0
        public static void OnContinueLevel()
        {
            LevelPlayground.Resetlevels();
            LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown);

            Server.Report(Server.ReportComands.NextLevel);

            Scenes.GoToScene(Scenes.Types.Level);
        }
示例#5
0
        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);
            }
        }
示例#6
0
 public static void OnLoadShop()
 {
     Scenes.GoToScene(Scenes.Types.Shop);
 }