void end_trade() { trade_menu.SetActive(false); trading = false; Gameloop.set_mode(Gameloop.mode_dungeon); Gameloop.unpause_game(); }
// 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(); }
/// <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); } }
/// <summary> /// Loads the selected level /// </summary> public void LoadGame() { Loop = new Gameloop(); try { LoadLevel(); } catch (Exception q) { ExceptionManager.Catch(q); return; } Loop.Start(); }
public static void SetupForUnitTesting(Level level) { UnitTesting = true; Level = level; Loop = new Gameloop(); }
void Awake() { instance = this; }