added Tiles, basic TileBehaviour

This commit is contained in:
j-weissen 2022-05-18 22:53:23 +02:00
parent 66756be23b
commit 433158e658
8 changed files with 100 additions and 7 deletions

View file

@ -0,0 +1,42 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Tiles
{
public abstract class BaseTile
{
protected Color color;
public Color getColor => color;
// Later to be replaced with
// public Sprite sprite;
protected BaseTile(Color color)
{
this.color = color;
}
protected void Start()
{
}
protected void Update()
{
}
public void DayLightStep()
{
}
public void Clicked(UsableItem usable)
{
Debug.Log(usable.ToString() + " used on " + this.ToString());
}
}
}