public void RegisterTweakable(ITweakable tweakable) { if (tweakable.Manager != null && tweakable.Manager != this) { tweakable.Manager.UnregisterTweakable(tweakable); } tweakable.Manager = this; baseManager.RegisterObject(tweakable); }
public void RegisterInvokable(IInvokable invokable) { if (invokable.Manager != null && invokable.Manager != this) { invokable.Manager.UnregisterInvokable(invokable); } invokable.Manager = this; baseManager.RegisterObject(invokable); }