public override void OnRegister() { BaseObjectMenuStateView.gameObject.SetActive(false); ToggleObjectMenuStateSignal.AddListener(ShowObjectBasedMenuState); RegisterMenuStateDependentSignals(); }
public override void OnRemove() { ToggleObjectMenuStateSignal.RemoveListener(ShowObjectBasedMenuState); UnRegisterMenuStateDependentSignals(); }
void EnableObjectMenuState() { ToggleObjectMenuStateSignal.Dispatch(NextMenuState as ObjectMenuState, true); LinkMenuStateWithGameObject(); }