2019-04-27 22:20:01 +00:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2019-04-28 14:34:50 +00:00
|
|
|
|
public class MapTile : MonoBehaviour
|
2019-04-27 22:20:01 +00:00
|
|
|
|
{
|
|
|
|
|
public bool walkable;
|
|
|
|
|
public bool roomPart;
|
|
|
|
|
public Sprite sprite;
|
|
|
|
|
|
|
|
|
|
private SpriteRenderer spriteRenderer;
|
|
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
|
|
|
|
spriteRenderer = GetComponent<SpriteRenderer>();
|
|
|
|
|
spriteRenderer.sprite = sprite;
|
|
|
|
|
}
|
|
|
|
|
}
|