예제 #1
0
    [SerializeField] private TileLighting tileLighting;      //Reference to the tile light

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