void Update() { if (Input.GetKeyDown(KeyCode.D) && MyTurn) { Buttons[3].interactable = true; } if (Input.GetKeyDown(KeyCode.K) && MyTurn && Able) { Keep(); } if (Input.GetKeyDown(KeyCode.L)) { LeaveTokyo(); } if (Ready) { Able = true; Ready = false; C.NotifyDices(Dices); RerollsRemaining--; RollRemainingText.text = RerollsRemaining.ToString(); } if (RerollsRemaining < 1) { NotAllowingRoll(); } }
public void SetCanvasOn() { Able = false; if (OnTokyo) { SetPoints(0, 0, 2); } RerollsRemaining = 3; RollRemainingText.text = RerollsRemaining.ToString();; PlayerTurn.gameObject.SetActive(true); AllowingRoll(); }