Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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;
        }
    }