diff --git a/Assets/Scripts/CXX/Devices/Device_Base.cs b/Assets/Scripts/CXX/Devices/Device_Base.cs
index cad582a..9c47c4c 100644
--- a/Assets/Scripts/CXX/Devices/Device_Base.cs
+++ b/Assets/Scripts/CXX/Devices/Device_Base.cs
@@ -12,7 +12,7 @@ public class Device_Base : PermanentTriggerBase
///
/// trigger触发事件
///
- private Action triggerAction;
+ public Func triggerAction;
protected override void OnStart()
{
@@ -39,7 +39,7 @@ public class Device_Base : PermanentTriggerBase
}
}
- public void AddTriggerAction(Action action)
+ public void AddTriggerAction(Func action)
{
this.triggerAction = action;
}
diff --git a/Assets/Scripts/CXX/Tools/Tool_Base.cs b/Assets/Scripts/CXX/Tools/Tool_Base.cs
index 15ecfa5..3bffc75 100644
--- a/Assets/Scripts/CXX/Tools/Tool_Base.cs
+++ b/Assets/Scripts/CXX/Tools/Tool_Base.cs
@@ -16,7 +16,7 @@ public class Tool_Base : PermanentTriggerBase
///
/// trigger触发事件
///
- private Action triggerAction;
+ public Func triggerAction;
protected override void OnStart()
{
@@ -43,7 +43,7 @@ public class Tool_Base : PermanentTriggerBase
}
}
- public void AddTriggerAction(Action action)
+ public void AddTriggerAction(Func action)
{
this.triggerAction = action;
}