public void ThrowDice() { if (_gameController == null) { _gameController = gameObject.GetComponent <NetworkGameController>(); } StartCoroutine(_gameController.Dices()); buttonThrowDice.SetActive(false); }
// Start is called before the first frame update void Start() { if (GlobalVariables.local) { enabled = false; } else { ngc = GameObject.FindObjectOfType <NetworkGameController>(); mov = gameObject.GetComponent <ProtoMovement>(); circ = gameObject.GetComponent <Circle>(); } }
// Start is called before the first frame update void Start() { winPanel = GameObject.Find("WinScreen"); winPanel.SetActive(false); menuPanel = GameObject.Find("MenuOptions"); helpScreen = GameObject.Find("HelpMenu"); disconnectPanel.SetActive(false); // Grab other controllers soundEffectController = GameObject.Find("GameController").GetComponent <SoundEffectController>(); gameCoreController = GameObject.Find("GameController").GetComponent <GameCoreController>(); networkGameController = GameObject.Find("GameController").GetComponent <NetworkGameController>(); }