We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b869ac6 commit f32bd5dCopy full SHA for f32bd5d
Assets/CatCode/Commands/DynamicCommand.cs
@@ -7,6 +7,12 @@ public sealed class DynamicCommand : Command
7
private readonly Action<Action> _onExecute;
8
private readonly Action _onStop;
9
10
+ public DynamicCommand(Action<Action> onExecute, Action onStop)
11
+ {
12
+ _onExecute = onExecute;
13
+ _onStop = onStop;
14
+ }
15
+
16
protected override void OnExecute()
17
{
18
if (_onExecute == null)
0 commit comments