public SubMenuComponent() { if (!PlayFabEditor.IsEventHandlerRegistered(StateUpdateHandler)) { PlayFabEditor.EdExStateUpdate += StateUpdateHandler; } }
public void OnDestroy() { if (PlayFabEditor.IsEventHandlerRegistered(StateUpdateHandler)) { PlayFabEditor.EdExStateUpdate -= StateUpdateHandler; } }
static PlayFabEditorDataMenu() { if (!PlayFabEditor.IsEventHandlerRegistered(StateUpdateHandler)) { PlayFabEditor.EdExStateUpdate += StateUpdateHandler; } }