Add StockManager + Multiple minor Fix

This commit is contained in:
Antoine H 2021-01-12 16:55:43 +01:00
parent 1360a3f978
commit 4f99687ae2
10 changed files with 182 additions and 42 deletions

View file

@ -37,7 +37,7 @@ public abstract class Workshop : MonoBehaviour, IUsable
}
// Start is called before the first frame update
void Start()
protected virtual void Start()
{
if(gameObject.layer != LayerMask.NameToLayer("Interactions"))
Debug.LogWarning(gameObject.name+" layer should be set to 'Interactions' to work properly");
@ -50,7 +50,7 @@ public abstract class Workshop : MonoBehaviour, IUsable
}
//LateUpdate is called after classic Updates
void LateUpdate()
protected virtual void LateUpdate()
{
if(playerInteracting)
{