2025-03-10 07:15:28 +00:00
|
|
|
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<PCActor>();
|
|
|
|
|
if(pcactor && !pcactor.IsEnemy())
|
|
|
|
|
{
|
|
|
|
|
if (go_nextchapter.activeSelf)
|
2025-03-12 00:16:15 +00:00
|
|
|
{ // TODO 정인호 : 다음 챕터로 (팝업으로 물어보기)
|
2025-03-10 07:15:28 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{ // 보스를 처치하세요.
|
|
|
|
|
ToastUI.Ins.Set(349);
|
|
|
|
|
MyValue.m_RealCamera.Set_TargetShow(tf_chapterboss);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|