Esempio n. 1
0
    public void SwitchToSkill(PlayerSkill skill)
    {
        switch (inputState)
        {
        case InputState.Selected:
        case InputState.Skill:
            curTask.Abort();
            curTask = null;
            break;

        default:
            Debug.LogError("ErrorState");
            break;
        }
        ;
        selectTask.bPaused = true;
        curTask            = skill.CallGetPlayerInput();
        selectedChess.PrepareSkill(skill);
        curTask.CreateFloorHUD(new Color(0, 1, 1, 0.8f));
        curTask.Begin();
        inputState = InputState.Skill;
    }