Add Alot of stuff, Computer, repairStation, Whole game, Many things!

This commit is contained in:
2024-11-18 06:31:28 +01:00
parent 19b7964f83
commit a2091c3cf2
430 changed files with 55285 additions and 715 deletions

View File

@@ -0,0 +1,36 @@
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;
}
}