Files
Fishing2/Assets/Obi/Samples/Common/SampleResources/Scripts/ObiActorTeleport.cs
2026-01-01 22:00:33 +08:00

16 lines
298 B
C#

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