Selling Functionality, Picking up items, Basic computer

This commit is contained in:
2024-10-21 01:07:44 +02:00
parent f594bdf112
commit 19b7964f83
117 changed files with 9452 additions and 540 deletions

View File

@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseCounter : MonoBehaviour, IObjectParentHolder, IInteractable {
//This could be private, but since this should be only inherticed I will leave it as protected
[SerializeField] protected Transform _counterObjectHandle;
protected Object _currentObject;
public virtual void Interact() {
Debug.LogError("Interact not implemented");
}
public virtual Transform GetHolderTransform() {
return _counterObjectHandle;
}
public virtual void SetObject(Object obj) {
_currentObject = obj;
}
public virtual Object GetObject() {
return _currentObject;
}
public virtual void ClearObject() {
_currentObject = null;
}
public virtual bool HasObject() {
return _currentObject != null;
}
}