void InitGame() { gameCamera.Locked = true; menu.Activate(); // TESTING // ActivePlayer = new Player(5, "asdf"); // ActivePlayer.playerData = new PlayerData(5); // gameTurn2.Activate(); // TESTING }
public override void Load() { if (!Main.dedServ) //won't initialize on server { MenuUI = new MenuUI(); MenuUI.Activate(); MyInterface = new UserInterface(); MyInterface?.SetState(MenuUI); } }
public void ToMenu() { highScoreUI.Deactivate(); menuUI.Activate(); }
void Start() { openMenu.onClick.AddListener(delegate() { menu.Activate(); }); }