protected virtual void Awake() { gameDatabaseData = GameController.Instance.gameDatabaseData; selectedObject = transform.GetChild(0).gameObject; spriteRenderer = GetComponent <SpriteRenderer>(); tileGenerator = GameObject.FindGameObjectWithTag("LevelController").GetComponent <TileGenerator>(); levelController = GameObject.FindGameObjectWithTag("LevelController").GetComponent <LevelController>(); }
private void Awake() { _tileGenerator = GameObject.FindGameObjectWithTag("LevelController").GetComponent <TileGenerator>(); _gameDatabaseData = GameController.Instance.gameDatabaseData; GetConnectedSlots(); }
protected virtual void Awake() { _gameDatabaseData = GameController.Instance.gameDatabaseData; _tileGenerator = GetComponent <TileGenerator>(); _mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); }