Esempio n. 1
0
        public static void OnLoadStart()
        {
            LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown);
            Scenes.GoToScene(Scenes.Types.Start);

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

            Scenes.GoToScene(Scenes.Types.Level);
        }
Esempio n. 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);
        }
Esempio n. 4
0
        public static void OnContinueLevel()
        {
            LevelPlayground.Resetlevels();
            LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown);

            Server.Report(Server.ReportComands.NextLevel);

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