void Start() { if (carData != null) { carData.Initialize (this); } turnIndicator = GetComponentInChildren<TurnIndicator>(); ResetCar (); }
private void Awake() { _tiles = new Tile[8][]; for (var i = 0; i < 8; i++) { _tiles[i] = new Tile[8]; } _turnIndicator = GameObject.FindObjectOfType <TurnIndicator>(); PlayerTurn = PlayerColor.Black; PlayerWon = false; }
private void StartDriving() { _isDriving = true; _animator.SetBool("IsDriving", true); TurnIndicator.SetActive(false); }