21 lines
414 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TeleportPoint : MonoBehaviour,IInteractiable
{
public SceneLoadEventSO loadEventSO;
public GameSceneSO sceneToGo;
public Vector3 positionToGo;
public void TriggerAction()
{
Debug.Log("111");
loadEventSO.RaiseLoadRequesEvent(sceneToGo, positionToGo, true);//传入数据呼叫
}
}