using UnityEngine; public class ChapterPortal : MonoBehaviour { public GameObject go_nextchapter; // 다음 챕터 포탈 활성화 public Transform tf_chapterboss; public void Set_NextChapter(bool active) { go_nextchapter.SetActive(active); } private void OnTriggerEnter(Collider other) { var pcactor = other.GetComponent(); if(pcactor && !pcactor.IsEnemy()) { if (go_nextchapter.activeSelf) { // 다음 챕터로 (팝업으로 물어보기) MyValue.MyChoiceMapData.n_PortalIndex = 0; InGameInfo.Ins.Load_Map(MyValue.MyChoiceMapData.n_MapID + 1); } else { // 보스를 처치하세요. ToastUI.Ins.Set(349); MyValue.m_RealCamera.Set_TargetShow(tf_chapterboss); } } } }