示例#1
0
 void end_trade()
 {
     trade_menu.SetActive(false);
     trading = false;
     Gameloop.set_mode(Gameloop.mode_dungeon);
     Gameloop.unpause_game();
 }
示例#2
0
 // Update is called once per frame
 void start_trade()
 {
     trading = true;
     trade_menu.SetActive(true);
     init_trade_menu();
     Gameloop.set_mode(Gameloop.mode_trade);
     Gameloop.pause_game();
 }
示例#3
0
 /// <summary>
 ///     Makes the user pick a level and plays it
 /// </summary>
 public void SelectLevel()
 {
     DrawingPanel.Children.Clear();
     try
     {
         Loop        = new Gameloop();
         Loadedlevel = _levelPicker.PickLevel();
         Loop.Start();
     }
     catch (Exception q)
     {
         ExceptionManager.Catch(q);
     }
 }
示例#4
0
        /// <summary>
        ///     Loads the selected level
        /// </summary>
        public void LoadGame()
        {
            Loop = new Gameloop();
            try
            {
                LoadLevel();
            }
            catch (Exception q)
            {
                ExceptionManager.Catch(q);
                return;
            }

            Loop.Start();
        }
示例#5
0
 public static void SetupForUnitTesting(Level level)
 {
     UnitTesting = true;
     Level       = level;
     Loop        = new Gameloop();
 }
示例#6
0
 void Awake()
 {
     instance = this;
 }