summaryrefslogtreecommitdiff
path: root/Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-27 16:30:19 +0800
committerchai <chaifix@163.com>2021-01-27 16:30:19 +0800
commit6ee18886c8af3858de5e97599b23086823d9f320 (patch)
treeaed86a8c4887586d976410ecd3d14789b2ee3583 /Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs
parent97da432c35b8c7aaf9dd2c39e2aa4b1f55f36065 (diff)
*更新Behaviour Designer版本,在最下版本有BUG
Diffstat (limited to 'Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs')
-rw-r--r--Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs b/Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs
index c0c9e2f0..79675c97 100644
--- a/Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs
+++ b/Client/Assets/Behavior Designer/Runtime/Actions/Reflection/SetFieldValue.cs
@@ -22,19 +22,19 @@ namespace BehaviorDesigner.Runtime.Tasks
public override TaskStatus OnUpdate()
{
if (fieldValue == null) {
- //Debug.LogWarning("Unable to get field - field value is null");
+ Debug.LogWarning("Unable to get field - field value is null");
return TaskStatus.Failure;
}
var type = TaskUtility.GetTypeWithinAssembly(componentName.Value);
if (type == null) {
- //Debug.LogWarning("Unable to set field - type is null");
+ Debug.LogWarning("Unable to set field - type is null");
return TaskStatus.Failure;
}
var component = GetDefaultGameObject(targetGameObject.Value).GetComponent(type);
if (component == null) {
- //Debug.LogWarning("Unable to set the field with component " + componentName.Value);
+ Debug.LogWarning("Unable to set the field with component " + componentName.Value);
return TaskStatus.Failure;
}