コード例 #1
0
    void GetInteractableObjectDetails()
    {
        Interactable intera = player.gameObject.GetComponent <PlayerController>().focus;

        GuiManager.manager.UpdateInteractableHead(intera.nameOfObject);
        dialStore = intera.gameObject.GetComponent <DialogueStore>();
    }
コード例 #2
0
    IEnumerator CleanUpThings()
    {
        yield return(new WaitForSeconds(1.5f));

        GuiManager.manager.hideAll();
        isTalking = false;

        dialStore = null;
        playerDialogue.isTalking         = false;
        playerDialogue.allOptionsPresent = false;
        playerDialogue.GetComponent <PlayerController>().RemoveFocus();
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     m     = GameObject.FindGameObjectWithTag("DialogueManager").GetComponent <DialogueManager>();
     store = GameObject.FindGameObjectWithTag("DialogueManager").GetComponent <DialogueStore>();
 }