Example #1
0
    // Methods ////////////////////////////////////////////////////////////////////////////////////

    public static WaitingForRoll GetInstance()
    {
        if (StateInstance == null)
        {
            StateInstance = new WaitingForRoll();
        }
        return(StateInstance);
    }
Example #2
0
    //---------------------------------------------------------------------------------------------

    public void Roll()
    {
        if (stateManager.CurrentState != WaitingForAction.GetInstance())
        {
            return;
        }

        stateManager.CurrentState = WaitingForRoll.GetInstance();
        stateManager.ShowBoardView(true, false);
        stateManager.turnView.SetActive(false);
        StartCoroutine(DiceCoroutine());
    }