// Methods //////////////////////////////////////////////////////////////////////////////////// public static WaitingForRoll GetInstance() { if (StateInstance == null) { StateInstance = new WaitingForRoll(); } return(StateInstance); }
//--------------------------------------------------------------------------------------------- public void Roll() { if (stateManager.CurrentState != WaitingForAction.GetInstance()) { return; } stateManager.CurrentState = WaitingForRoll.GetInstance(); stateManager.ShowBoardView(true, false); stateManager.turnView.SetActive(false); StartCoroutine(DiceCoroutine()); }