Files
Fishing2/Assets/Obi/Samples/Common/SampleResources/Scripts/ObiActorTeleport.cs
2025-11-10 00:08:26 +08:00

18 lines
349 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Obi.Samples
{
public class ObiActorTeleport : MonoBehaviour
{
public ObiActor actor;
public Transform target;
public void Teleport()
{
actor.Teleport(target.position, target.rotation);
}
}
}