Added player task system. simple interaction with objects. Known issue - no player stats canvas

This commit is contained in:
Vladimir Koshevarov
2023-02-21 18:58:06 +02:00
parent 7c26b80584
commit 59d2f7cc30
46 changed files with 2289 additions and 3121 deletions
@@ -0,0 +1,11 @@
using UnityEngine;
public class BaseInteractableObject : MonoBehaviour
{
[SerializeField]
public Transform _playerArrivePoint;
public virtual void Interact()
{
Debug.Log("Interact with some object");
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2af31bf77e63ee64da69d7c708550949
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+10
View File
@@ -0,0 +1,10 @@
using UnityEngine;
public class Bed : BaseInteractableObject
{
public override void Interact()
{
Debug.Log("Interact with bed");
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ec924e9d7d23a4e46b256dedc9caa75c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
using UnityEngine;
public class Fridge : BaseInteractableObject
{
public override void Interact()
{
Debug.Log("Interact with Fridge");
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6768a45c9ae20c246bf1052cfa08ddec
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: