1
Fork 0
slime-blood-and-pain/Assets/Scripts/MapTile.cs
2019-04-29 15:27:26 +02:00

22 lines
452 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapTile : MonoBehaviour
{
public bool walkable;
public bool roomPart;
public Sprite sprite;
private SpriteRenderer spriteRenderer;
private void Start()
{
spriteRenderer = GetComponent<SpriteRenderer>();
spriteRenderer.sprite = sprite;
}
public void OnNewLevel() {
Destroy(gameObject);
}
}