private void NextMessage() { if (queue.Count == 0) { TriggerManager.Inst().TurnTrigger(TriggerType.MessageClose); messageActive = null; } else messageActive = queue.Dequeue(); timeActive = ACTIVE_LIMIT; if (!GetIsActive()) { InputManager.Inst().ClearActiveState("gamemessage"); } }
public void ClearMessages() { messageActive = null; queue.Clear(); InputManager.Inst().ClearActiveState("gamemessage"); }
public void Show(String title, String description, Texture2D icon) { if (disabled) return; MessageItem item = new MessageItem(title, description, icon); if (messageActive == null) messageActive = item; else queue.Enqueue(item); InputManager.Inst().SetActiveState("gamemessage"); }