コード例 #1
0
 public void CloseHint()
 {
     HintMenu.SetActive(false);
     Debug.Log(actionQueue.Count);
     if (actionQueue.Count != 0)
     {
         Debug.Log("Should Dequeue");
         actionQueue.Dequeue().Invoke();
     }
 }
コード例 #2
0
 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);
     }
 }