Skip to content

Commit f32bd5d

Browse files
committed
fix DynamicCommand
1 parent b869ac6 commit f32bd5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Assets/CatCode/Commands/DynamicCommand.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ public sealed class DynamicCommand : Command
77
private readonly Action<Action> _onExecute;
88
private readonly Action _onStop;
99

10+
public DynamicCommand(Action<Action> onExecute, Action onStop)
11+
{
12+
_onExecute = onExecute;
13+
_onStop = onStop;
14+
}
15+
1016
protected override void OnExecute()
1117
{
1218
if (_onExecute == null)

0 commit comments

Comments
 (0)