protected virtual void OnEnable() { if (controllerEvents != null) { controllerEvents.SubscribeToButtonAliasEvent(toggleButton, true, ToggleButtonPressed); } }
void SubscribeMenuButton() { if (controllerEvents == null) { return; } controllerEvents.SubscribeToButtonAliasEvent(menuButton, true, ToggleMenu); }
protected virtual void OnEnable() { currentIndex = 0; if (controllerEvents != null) { controllerEvents.SubscribeToButtonAliasEvent(toggleButton, false, ButtonPressed); } ToggleObjects(); }