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