Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     _tileGenerator    = GameObject.FindGameObjectWithTag("LevelController").GetComponent <TileGenerator>();
     _gameDatabaseData = GameController.Instance.gameDatabaseData;
     GetConnectedSlots();
 }
Ejemplo n.º 3
0
 protected virtual void Awake()
 {
     _gameDatabaseData = GameController.Instance.gameDatabaseData;
     _tileGenerator    = GetComponent <TileGenerator>();
     _mainCamera       = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
 }