コード例 #1
0
    //Steps
    public void ChangeStep(e_step _step)
    {
        step = _step;

        inputManager.UpdateStep(_step);
        boardManager.UpdateStep(_step);
    }
コード例 #2
0
    public IEnumerator StepTansition(e_step _final)
    {
        ChangeStep(e_step.Default);
        UIManager.Transition(_final);

        yield return(new WaitForSeconds(transiAnim.length));

        if (!eliminated)
        {
            ChangeStep(_final);
        }
    }
コード例 #3
0
    public void UpdateStep(e_step _step)
    {
        step = _step;

        if (step == e_step.Board)
        {
            deckManager.Unselection();
        }
        else if (step == e_step.Card)
        {
            boardManager.Unselection();
        }
    }
コード例 #4
0
    public void ModifyMana(int _value)
    {
        mana += _value;
        uiManager.UpdateMana();

        if (mana <= 0)
        {
            if (step == e_step.Card || step == e_step.UseCard)
            {
                step = e_step.Card;
                NextStep();
            }
        }
    }
コード例 #5
0
 public void Transition(e_step _step)
 {
     transitionText.text = _step.ToString();
     transition.Anim();
 }
コード例 #6
0
 public void UpdateStep(e_step _step)
 {
     step = _step;
 }