public void NextDialog() { if (textC.typing) { textC.SkipForward(); } else { if (!dialogManager.isActive) { Begin(); } else { dialogManager.Next(); } if (dialogManager.nodeData.isEnd) { UIHolder.SetActive(false); PlayerManager.playerDaddy.player.playerSpeechBubble.UIHolder.SetActive(false); player.DisableControls(false); dialogManager = new VD2(); } else if (dialogManager.nodeData.isPlayer) { UIHolder.SetActive(false); PlayerManager.playerDaddy.player.playerSpeechBubble.UIHolder.SetActive(true); PlayerManager.playerDaddy.player.playerSpeechBubble.textC.SetText(dialogManager.nodeData.comments[dialogManager.nodeData.commentIndex]); } else { UIHolder.SetActive(true); PlayerManager.playerDaddy.player.playerSpeechBubble.UIHolder.SetActive(false); print("Num: " + dialogManager.nodeData.commentIndex); textC.SetText(dialogManager.nodeData.comments[dialogManager.nodeData.commentIndex]); } } }
public void NextDialog() { invoked = false; if (!dialogManager.isActive) { Begin(); } else { dialogManager.Next(); } if (dialogManager.nodeData.isEnd) { UIHolder.SetActive(false); playerUIHolder.SetActive(false); speechDone = true; runSpeech = false; playerUIHolder.gameObject.GetComponent <RectTransform>().localPosition = Vector3.zero; UIHolder.gameObject.GetComponent <RectTransform>().localPosition = Vector3.zero; } else if (dialogManager.nodeData.isPlayer) { UIHolder.SetActive(false); playerUIHolder.SetActive(true); playerTextC.SetText(dialogManager.nodeData.comments[dialogManager.nodeData.commentIndex]); } else { UIHolder.SetActive(true); playerUIHolder.SetActive(false); textC.SetText(dialogManager.nodeData.comments[dialogManager.nodeData.commentIndex]); } }