void GetInteractableObjectDetails() { Interactable intera = player.gameObject.GetComponent <PlayerController>().focus; GuiManager.manager.UpdateInteractableHead(intera.nameOfObject); dialStore = intera.gameObject.GetComponent <DialogueStore>(); }
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(); }
// Use this for initialization void Start() { m = GameObject.FindGameObjectWithTag("DialogueManager").GetComponent <DialogueManager>(); store = GameObject.FindGameObjectWithTag("DialogueManager").GetComponent <DialogueStore>(); }