public void ShowObjective(string objectiveString) { objectiveQueue.Enqueue(objectiveString); if (m_state != UIObjectivePanelState.Visible) { State = UIObjectivePanelState.Visible; } }
void Update() { if (m_state == UIObjectivePanelState.Visible) { countdown -= Time.unscaledDeltaTime; if (countdown <= 0f) { if (objectiveQueue.Count > 0) { State = UIObjectivePanelState.Visible; } else { State = UIObjectivePanelState.Hidden; } } } }
public void HideObjective() { objectiveQueue.Clear(); State = UIObjectivePanelState.Hidden; }