void Start() { currentlyTalkingTo = null; dialogueOfCurrentConversation = null; indexInCurrentConversation = 0; ActivePanel = false; }
public void EndConversation() { currentlyTalkingTo = null; dialogueOfCurrentConversation = null; indexInCurrentConversation = 0; ActivePanel = false; DialoguePanel.SetActive(false); }
void Start() { currentlyTalkingTo = null; dialogueOfCurrentConversation = null; indexInCurrentConversation = 0; Button btn = continueButton.GetComponent <Button>(); btn.onClick.AddListener(TaskOnClick); }
protected override void Start() { base.Start(); SetDialogPanel(false); NPCPhrasesPanel.SetActive(true); StartCoroutine(SayRandomPhrase(Random.Range(minTimeToNextPhrase, maxTimeToNextPhrase))); thisDialogueHolder = this.GetComponent <NPCDialogueHolder>(); }
public void BeginConversation(GameObject npc) { ActivePanel = true; DialoguePanel.SetActive(true); Debug.Log("talking to: " + npc.name); currentlyTalkingTo = npc; dialogueOfCurrentConversation = npc.GetComponent <NPCDialogueHolder>(); indexInCurrentConversation = 0; AdvanceConversation(); }
IEnumerator BeginConversationIE(GameObject npc) { yield return(null); Debug.Log("beginning convo"); isShowing = !isShowing; dialogue.SetActive(isShowing); currentlyTalkingTo = npc; dialogueOfCurrentConversation = npc.GetComponent <NPCDialogueHolder>(); indexInCurrentConversation = 0; AdvanceConversation(); }
public void EndConversation() { currentlyTalkingTo = null; dialogueOfCurrentConversation = null; indexInCurrentConversation = 0; }
// Use this for initialization void Start() { // inventory = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerInventory>(); npcDialogueHolder = GetComponent <NPCDialogueHolder>(); checkObject = GetComponent <CheckObject>(); }