18 lines
349 B
C#
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);
|
|
}
|
|
}
|
|
}
|