2019-04-27 11:38:29 +00:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Tile : MonoBehaviour
|
|
|
|
|
{
|
2019-04-27 12:21:33 +00:00
|
|
|
|
public bool walkable;
|
|
|
|
|
public Sprite sprite;
|
2019-04-27 11:38:29 +00:00
|
|
|
|
|
|
|
|
|
private SpriteRenderer spriteRenderer;
|
|
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
|
|
|
|
spriteRenderer = GetComponent<SpriteRenderer>();
|
2019-04-27 12:21:33 +00:00
|
|
|
|
spriteRenderer.sprite = sprite;
|
2019-04-27 11:38:29 +00:00
|
|
|
|
}
|
|
|
|
|
}
|