예제 #1
0
        /// <summary>
        /// Called when the escape key is pressed.
        /// </summary>
        public virtual void onEscape()
        {
            GuiScreen fallback = this.getEscapeCallback();

            if (fallback != null)
            {
                fallback.open();
            }
        }
예제 #2
0
 public void Awake()
 {
     GuiManager.title       = this.titleObject.GetComponent <GuiScreen>();
     GuiManager.options     = this.optionsObject.GetComponent <GuiScreen>();
     GuiManager.changeLog   = this.changeLogObject.GetComponent <GuiScreen>();
     GuiManager.version     = this.versionObject.GetComponent <GuiScreen>();
     GuiManager.paused      = this.pausedObject.GetComponent <GuiScreen>();
     GuiManager.worldSelect = this.worldSelectObject.GetComponent <GuiScreen>();
     GuiManager.createWorld = (GuiScreenCreateWorld)this.newWorldObject.GetComponent <GuiScreen>();
     GuiManager.renameWorld = (GuiScreenRenameWorld)this.renameWorldObject.GetComponent <GuiScreen>();
     GuiManager.deleteWorld = (GuiScreenDeleteWorld)this.deleteWorldObject.GetComponent <GuiScreen>();
     GuiManager.respawn     = (GuiScreenRespawn)this.respawnObject.GetComponent <GuiScreen>();
 }
예제 #3
0
 public void CALLBACK_gotoGui(GuiScreen screen)
 {
     this.playClickSound();
     screen.open();
 }