Esempio n. 1
0
    public void PreemptSkillCommand(CommandTask commandTask)
    {
        selectCommand.bPaused = true;
        if (moveCommand != null)
        {
            moveCommand.bPaused = true;
            moveCommand.HideFloorHUD();
        }
        if (skillCommand != null)
        {
            skillCommand.Abort();
        }

        skillCommand = commandTask;

        skillCommand.eTaskComplete.AddListener(() =>
        {
            skillCommand          = null;
            selectCommand.bPaused = false;
            if (moveCommand != null)
            {
                moveCommand.bPaused = false;
                moveCommand.ShowFloorHUD();
            }
            UIManager.instance.eRefreshFloorHUD.Invoke();
        });
    }