bug fixes

This commit is contained in:
DerTyp187
2021-09-25 19:25:18 +02:00
parent 904b534695
commit 880e5a2424
98 changed files with 4080 additions and 243 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 798eecf368f882c46a67ab4e6354bc7e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Building : MonoBehaviour
{
public abstract string GetTitle();
public abstract string GetDescription();
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 663feed4d05ec994fb1deb18b1767962
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,24 @@
using UnityEngine;
public class BuildingSign : 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");
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 18cda7c2fe759504a9a7b59a3a413b35
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HouseBuildingScript : Building
{
[SerializeField] private string title = "House";
[SerializeField] private string description = "A place for people to live in.";
public override string GetTitle()
{
return title;
}
public override string GetDescription()
{
return description;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 255558bfba6648641822c24b4555e7db
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: