示例#1
0
文件: App.cs 项目: pjrodrig/BasicRPG
 void InitGame()
 {
     gameCamera.Locked = true;
     menu.Activate();
     // TESTING
     // ActivePlayer = new Player(5, "asdf");
     // ActivePlayer.playerData = new PlayerData(5);
     // gameTurn2.Activate();
     // TESTING
 }
示例#2
0
        public override void Load()
        {
            if (!Main.dedServ)             //won't initialize on server
            {
                MenuUI = new MenuUI();
                MenuUI.Activate();

                MyInterface = new UserInterface();
                MyInterface?.SetState(MenuUI);
            }
        }
示例#3
0
 public void ToMenu()
 {
     highScoreUI.Deactivate();
     menuUI.Activate();
 }
示例#4
0
 void Start()
 {
     openMenu.onClick.AddListener(delegate() {
         menu.Activate();
     });
 }