/// <summary> /// Called when the escape key is pressed. /// </summary> public virtual void onEscape() { GuiScreen fallback = this.getEscapeCallback(); if (fallback != null) { fallback.open(); } }
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>(); }
public void CALLBACK_gotoGui(GuiScreen screen) { this.playClickSound(); screen.open(); }