Building Rework

This commit is contained in:
DerTyp187
2021-10-07 09:35:55 +02:00
parent 4b595ad87c
commit 9efda5a8e2
44 changed files with 151 additions and 639 deletions

View File

@@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class BuildingConstruction : MonoBehaviour
{
public GameObject building;
public abstract bool CheckForResources();
public abstract void Init();
private void Start()
{
Init();
}
private void Update()
{
if (CheckForResources())
{
Instantiate(building, gameObject.transform.position, Quaternion.identity);
Destroy(this.gameObject);
}
}
}