public void ShowDialogue(Dialogue[] p_dialogues) { isDialogue = true; txt_Dialogue.text = ""; txt_Name.text = ""; theIC.SettingUI(false); dialogues = p_dialogues; theCam.CamOriginSetting(); StartCoroutine(CameraTargettingType()); }
IEnumerator CameraResetCoroutine(float p_CamSpeed = 0.1f, bool p_isFinish = false) { yield return(new WaitForSeconds(0.5f)); while (transform.position != originPos || Quaternion.Angle(transform.rotation, originRot) >= 0.5f) { transform.position = Vector3.MoveTowards(transform.position, originPos, p_CamSpeed); transform.rotation = Quaternion.Lerp(transform.rotation, originRot, p_CamSpeed); yield return(null); } transform.position = originPos; if (p_isFinish) { thePlayer.Reset(); // 모든 대화가 끝났으면 리셋 theIC.SettingUI(true); } }