private void OnCommandStateResolve(CommandSpec spec, ref CommandState state) { if (spec is EnumCommandSpec <TCmdEnum> ) { m_CommandState?.Invoke((spec as EnumCommandSpec <TCmdEnum>).Value, ref state); } }
private void OnCommandClick(CommandSpec spec) { if (spec is EnumCommandSpec <TCmdEnum> ) { m_CommandClick?.Invoke((spec as EnumCommandSpec <TCmdEnum>).Value); } }