void ActionHandler_ActionUIEvent(ActionHandler.ActionType type) { var shouldHide = type == ActionHandler.ActionType.Start || type == ActionHandler.ActionType.Pass; MovementControlsUI.ToggleCanvasGroup(controlsCanvas, !shouldHide); Debug.LogFormat("ActionHandler_ActionUIEvent shouldHide:{0} type:{1}", shouldHide, type); }
void Item_ActionUIEvent(ActionHandler.ActionType type) { switch (type) { case ActionHandler.ActionType.InitInteraction: speechBubble.ToggleLayer(true); break; case ActionHandler.ActionType.End: case ActionHandler.ActionType.Pass: speechBubble.ToggleLayer(false); break; } }