diff options
Diffstat (limited to 'Client/Assets/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs')
-rw-r--r-- | Client/Assets/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs index f6977b2e..4a6b9cf1 100644 --- a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs +++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Transform/GetPosition.cs @@ -9,8 +9,6 @@ namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
public SharedGameObject targetGameObject;
[Tooltip("Can the target GameObject be empty?")]
- public SharedBool allowEmptyTarget;
- [Tooltip("The position of the Transform")]
[RequiredField]
public SharedVector3 storeValue;
@@ -19,12 +17,10 @@ namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform public override void OnStart()
{
- if (!allowEmptyTarget.Value) {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- targetTransform = currentGameObject.GetComponent<Transform>();
- prevGameObject = currentGameObject;
- }
+ var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
+ if (currentGameObject != prevGameObject) {
+ targetTransform = currentGameObject.GetComponent<Transform>();
+ prevGameObject = currentGameObject;
}
}
@@ -43,7 +39,6 @@ namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityTransform public override void OnReset()
{
targetGameObject = null;
- allowEmptyTarget = false;
storeValue = Vector3.zero;
}
}
|