This commit is contained in:
陈向学 2024-08-26 09:33:36 +08:00
parent 51bdb22652
commit 8ccf7fad23
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ public class Device_Base : PermanentTriggerBase
/// <summary>
/// trigger触发事件
/// </summary>
private Action<string> triggerAction;
private Action<string,bool> triggerAction;
protected override void OnStart()
{
@ -39,7 +39,7 @@ public class Device_Base : PermanentTriggerBase
}
}
public void AddTriggerAction(Action<string> action)
public void AddTriggerAction(Action<string,bool> action)
{
this.triggerAction = action;
}

View File

@ -16,7 +16,7 @@ public class Tool_Base : PermanentTriggerBase
/// <summary>
/// trigger触发事件
/// </summary>
private Action<string> triggerAction;
private Action<string,bool> triggerAction;
protected override void OnStart()
{
@ -43,7 +43,7 @@ public class Tool_Base : PermanentTriggerBase
}
}
public void AddTriggerAction(Action<string> action)
public void AddTriggerAction(Action<string,bool> action)
{
this.triggerAction = action;
}