Project_WL/Assets/Script/Map/WayPointPortal.cs

15 lines
350 B
C#
Raw Normal View History

using UnityEngine;
public class WayPointPortal : MonoBehaviour
{
public int m_WayIndex;
private void OnTriggerEnter(Collider other)
{
var pcactor = other.GetComponent<PCActor>();
if (pcactor && !pcactor.IsEnemy())
{ // 웨이포인트 UI 띄우기
NewGameUI.Ins.m_MapChoiceUI.Set();
}
}
}