public void CloseHint() { HintMenu.SetActive(false); Debug.Log(actionQueue.Count); if (actionQueue.Count != 0) { Debug.Log("Should Dequeue"); actionQueue.Dequeue().Invoke(); } }
internal void RenderHint(string text) { if (HintMenu.activeInHierarchy == false) { hintText.text = text; HintMenu.SetActive(true); } else { actionQueue.Enqueue(() => RenderHint(text)); Debug.Log("Added to queue " + text); } }