26 lines
591 B
C#
26 lines
591 B
C#
|
using NodeCanvas.Framework;
|
||
|
using ParadoxNotion.Design;
|
||
|
using UnityEngine;
|
||
|
|
||
|
|
||
|
namespace NodeCanvas.Tasks.Actions
|
||
|
{
|
||
|
|
||
|
[System.Obsolete("Use Get Property instead")]
|
||
|
[Category("GameObject")]
|
||
|
public class GetGameObjectPosition : ActionTask<Transform>
|
||
|
{
|
||
|
|
||
|
[BlackboardOnly]
|
||
|
public BBParameter<Vector3> saveAs;
|
||
|
|
||
|
protected override string info {
|
||
|
get { return "Get " + agentInfo + " position as " + saveAs; }
|
||
|
}
|
||
|
|
||
|
protected override void OnExecute() {
|
||
|
saveAs.value = agent.position;
|
||
|
EndAction();
|
||
|
}
|
||
|
}
|
||
|
}
|