void Start() { // 대사집을 불러옴 TextAsset TalkAsset = Resources.Load("00Json/CharaterScript") as TextAsset; string jsonData = TalkAsset.text; TutorialScript = JsonUtility.FromJson <TalkScript>(jsonData); //필요한 컴포넌트 연결 pc = GetComponent <PhaseCtrl>(); talkEffect = GetComponent <TalkEffect>(); }
TalkEffect te; // 토크이펙트 void Start() { pc = GetComponent <PhaseCtrl>(); // 컴포넌트연결 te = GetComponent <TalkEffect>(); // 컴포넌트연결 pc.CreateFourMiniMap(); // 선택지로 보여줄 미니맵 생성 RightEndPos = Right.position + (Vector3.right * Screen.width); // 가림막 도착지점 LeftEndPos = Left.position + (-Vector3.right * Screen.width); // 가림막 도착지점 TopEndPos = Top.position + (Vector3.up * Screen.height); // 가림막 도착지점 BottomEndPos = Bottom.position + (-Vector3.up * Screen.height); // 가림막 도착지점 }