This commit is contained in:
SoulliesOfficial
2026-01-03 18:19:39 -05:00
parent 3bcd7c1cf8
commit 33b1795c1f
7387 changed files with 2762819 additions and 716926 deletions

View File

@@ -1,32 +0,0 @@
/// ---------------------------------------------
/// Behavior Designer
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.BehaviorDesigner.Samples
{
using Opsive.BehaviorDesigner.Runtime.Tasks;
using Opsive.BehaviorDesigner.Runtime.Tasks.Actions;
using Opsive.GraphDesigner.Runtime.Variables;
using UnityEngine;
/// <summary>
/// Teleports the character to the specified location.
/// </summary>
[Shared.Utility.Category("Behavior Designer Samples")]
public class Teleport : Action
{
[Tooltip("The teleport location.")]
[SerializeField] protected SharedVariable<GameObject> m_Location;
/// <summary>
/// Teleports the character.
/// </summary>
/// <returns>Success after the character has teleported.</returns>
public override TaskStatus OnUpdate()
{
m_Transform.SetPositionAndRotation(m_Location.Value.transform.position, m_Location.Value.transform.rotation);
return TaskStatus.Success;
}
}
}