示例#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;
 }