private void Start() { _question = _gameController.GetComponent <GameManagerController>(); _pl = _playerLeft.GetComponent <playerLeft>(); _stateRemote = _canvasController.GetComponent <CanvasController>(); _boatBody = this.gameObject.GetComponent <Rigidbody>(); _audioSource = GetComponent <AudioSource>(); }
/// <summary> /// Start method /// </summary> private void Start() { _pl = _playerLeft.GetComponent <playerLeft>(); _pr = _playerRight.GetComponent <PlayerRight>(); _stateRemote = _canvasController.GetComponent <CanvasController>(); _questions = new Question[31]; InitialiseQuestions(); SwapQuestions(_questions); //PrintToConsole(); SetQuestionTextFields(); }