Added new art, also added stairs and walls to building menu
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Fruitomation.Game
|
||||
{
|
||||
public abstract class BuildingBase : MonoBehaviour
|
||||
public class Building : MonoBehaviour
|
||||
{
|
||||
[Header("Building Properties")]
|
||||
[SerializeField] private Sprite BuildingSprite;
|
||||
@@ -7,13 +7,13 @@ namespace Fruitomation.Game
|
||||
{
|
||||
private class BuildingInfo
|
||||
{
|
||||
public BuildingInfo(BuildingBase b, RectTransform rt)
|
||||
public BuildingInfo(Building b, RectTransform rt)
|
||||
{
|
||||
Building = b;
|
||||
Rect = rt;
|
||||
}
|
||||
|
||||
public BuildingBase Building { get; }
|
||||
public Building Building { get; }
|
||||
public RectTransform Rect { get; }
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Fruitomation.Game
|
||||
GameObject go = Instantiate(prefab, transform);
|
||||
BuildingInfo info = new
|
||||
(
|
||||
go.GetComponent<BuildingBase>(),
|
||||
go.GetComponent<Building>(),
|
||||
go.GetComponent<RectTransform>()
|
||||
);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using UnityEngine;
|
||||
|
||||
namespace Fruitomation.Game
|
||||
{
|
||||
public class FanBuilding : BuildingBase
|
||||
public class FanBuilding : Building
|
||||
{
|
||||
[Header("Fan Specific Items")]
|
||||
[SerializeField] private TriggerDetector TriggerDetector;
|
||||
|
||||
Reference in New Issue
Block a user