示例#1
0
    private IEnumerator BlockHorizontalMovement()
    {
        actionsManager.UpdateAuthorizedAction(ActionsManager.Actions.HorizontalMove, false);
        actionsManager.SetDelayToFinishAction(ActionsManager.Actions.HorizontalMove, 2.0f);
        yield return(new WaitForSeconds(0.25f));

        actionsManager.UpdateAuthorizedAction(ActionsManager.Actions.HorizontalMove, true);
        UpdateActionMap("Gameplay");
    }