コード例 #1
0
 public bool Interact(GameObject player)
 {
     eventSystem.SetSelectedGameObject(gameObject);
     PlayerInDialogue?.Invoke(true);
     Time.timeScale = 0f;
     StartCoroutine(StartDialogue());
     return(true);
 }
コード例 #2
0
 private void ExitDialogue()
 {
     if (currentSentenceCoroutine != null)
     {
         StopCoroutine(currentSentenceCoroutine);
         currentSentenceCoroutine = null;
     }
     currentSentence      = null;
     isInDialogue         = false;
     hasRead              = true;
     dialogueTextBox.text = "";
     StartCoroutine(uiUtility.UIWipeOut(dialogueUIParent, UIUtility.UIWipeStyle.Vertical, wipeSpeed));
     Time.timeScale = 1;
     PlayerInDialogue?.Invoke(false);
     EnableInteractableUI();
 }