Added Warehouse

This commit is contained in:
DerTyp187
2021-10-02 16:08:14 +02:00
parent 3ec6bdf26d
commit 75a6f34ece
19 changed files with 847 additions and 489 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WarehouseConstruction : BuildingConstruction
{
[Header("Needed Resources")]
[SerializeField] private int neededWood = 10;
[Header("Having Resources")]
[SerializeField] private int havingWood = 0;
public override void Init()
{
}
public override bool CheckForResources()
{
if (havingWood == neededWood)
{
return true;
}
return false;
}
}