Files
Fishing2/Assets/Obi/Samples/Common/SampleResources/Scripts/ObiActorTeleport.cs
2026-01-22 22:08:21 +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);
}
}
}