first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user