updated building.cs, buildingContruction.cs, buildingBlueprint.cs

This commit is contained in:
DerTyp187
2021-09-25 22:54:18 +02:00
parent 880e5a2424
commit 7af73ae68b
42 changed files with 1629 additions and 833 deletions

View File

@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InfoSign : Interactable
{
private Building parentBuilding;
private void Start()
{
parentBuilding = this.transform.parent.gameObject.GetComponent<Building>();
}
public override string GetDescription()
{
return "Press [E] to get <color=blue>info</color>.";
}
public override void Interact()
{
Debug.Log(parentBuilding.GetTitle());
Debug.Log("interact");
}
}