public void CallOnRemoveTokenEvent(GenericToken token) { TokensChangePanel.CreateTokensChangePanel(this, token, isAssigned: false); OnTokenIsRemoved?.Invoke(this, token.GetType()); OnTokenIsRemovedGlobal?.Invoke(this, token.GetType()); }
public void CallOnTokenIsAssigned(GenericToken token, Action callback) { TokensChangePanel.CreateTokensChangePanel(this, token, isAssigned: true); OnTokenIsAssigned?.Invoke(this, token.GetType()); OnTokenIsAssignedGlobal?.Invoke(this, token); Tokens.TokenToAssign = null; Triggers.ResolveTriggers(TriggerTypes.OnTokenIsAssigned, callback); }