// On click the tokens start an event public void startEvent() { Game game = Game.Get(); // If in horror phase ignore token, accept UI element (items) if (c.GetEvent().typeDynamic == "Token" && game.quest.phase != Quest.MoMPhase.investigator) { return; } // If a dialog is open ignore if (GameObject.FindGameObjectWithTag(Game.DIALOG) != null) { return; } // Spawn a window with the door/token info game.quest.eManager.QueueEvent(c.GetEvent().sectionName); }
// On click the tokens start an event public void startEvent() { // If a dialog is open ignore if (GameObject.FindGameObjectWithTag("dialog") != null) { return; } // Spawn a window with the door/token info Game.Get().quest.eManager.QueueEvent(c.GetEvent().name); }
// On click the tokens start an event public void startEvent() { Game game = Game.Get(); // If in horror phase ignore if (game.quest.phase != Quest.MoMPhase.investigator) { return; } // If a dialog is open ignore if (GameObject.FindGameObjectWithTag("dialog") != null) { return; } // Spawn a window with the door/token info game.quest.eManager.QueueEvent(c.GetEvent().sectionName); }