Esempio n. 1
0
    [SerializeField] private TileLighting tileLighting;      //Reference to the tile light

    void Awake()
    {
        tileSquare = transform.parent.gameObject;
        tileLighting = tileSquare.GetComponent<TileLighting>();
    }
Esempio n. 2
0
 public void setTileReferences(GameObject tile, TileLighting tl)
 {
     currentTile = tile;
     currentTileLighting = tl;
 }