19 lines
382 B
C#
19 lines
382 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class Tile : MonoBehaviour
|
|||
|
{
|
|||
|
public bool walkable;
|
|||
|
public bool roomPart;
|
|||
|
public Sprite sprite;
|
|||
|
|
|||
|
private SpriteRenderer spriteRenderer;
|
|||
|
|
|||
|
private void Start()
|
|||
|
{
|
|||
|
spriteRenderer = GetComponent<SpriteRenderer>();
|
|||
|
spriteRenderer.sprite = sprite;
|
|||
|
}
|
|||
|
}
|