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