Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     mapManager          = FindObjectOfType <ManageMap>();
     UIManager           = FindObjectOfType <ManageUI>();
     tileObjectManager   = FindObjectOfType <ManageTileObjects>();
     tileObjectUIManager = tileObjectManager.GetComponent <TileObjectUIManager>();
     selector            = Instantiate(selectorPrefab);
 }
Ejemplo n.º 2
0
 private void OnEnable()
 {
     tileObjectManager = FindObjectOfType <ManageTileObjects>();
     tileObject        = GetComponent <TileObject>();
 }