This commit is contained in:
parent
51bdb22652
commit
8ccf7fad23
|
@ -12,7 +12,7 @@ public class Device_Base : PermanentTriggerBase
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// trigger触发事件
|
/// trigger触发事件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Action<string> triggerAction;
|
private Action<string,bool> triggerAction;
|
||||||
|
|
||||||
protected override void OnStart()
|
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;
|
this.triggerAction = action;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class Tool_Base : PermanentTriggerBase
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// trigger触发事件
|
/// trigger触发事件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Action<string> triggerAction;
|
private Action<string,bool> triggerAction;
|
||||||
|
|
||||||
protected override void OnStart()
|
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;
|
this.triggerAction = action;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue