mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-29 20:22:08 +01:00
Merge branch 'main' into Buildings
This commit is contained in:
@@ -14,15 +14,12 @@ public class HouseConstruction : BuildingConstruction
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
gameManager = GameObject.Find("GameManager");
|
||||
gameManager.GetComponent<EventLog>().CreateEvent("Construction: House");
|
||||
}
|
||||
|
||||
public override bool CheckForResources()
|
||||
{
|
||||
if (havingWood == neededWood)
|
||||
{
|
||||
gameManager.GetComponent<EventLog>().CreateEvent("Construction: House: finished");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user