Little cleaner code

This commit is contained in:
Antoine H 2020-12-07 16:04:11 +01:00
parent 573dc63762
commit c710d3c38e
3 changed files with 2 additions and 3 deletions

View file

@ -9,8 +9,8 @@ public class Client_controller : MonoBehaviour
public float consumeTime = 3.0f; //Time to consume currentMug
public float waitingTime = 10.0f; //Patience after ordering
GameObject currentMug = null; //Mug currently held by the client
float consumeTimer;
GameObject currentMug = null; //Mug currently held by the client
//Handle objects interactions w/ Workshop
//Return wether the object is taken from tavernkeeper

View file

@ -8,7 +8,7 @@ public class Mug : MonoBehaviour, IGrabable
{
public int size = 1; //Size (1 or 2 hands) of the object
public bool dirty = false;
public Consumable content= null; //new Consumable("beer",1,null);
public Consumable content{get; protected set;} = null; //new Consumable("beer",1,null);
public void use()
{

View file

@ -11,7 +11,6 @@ public class Workshop : MonoBehaviour
public Sprite product_sprite;
public float prepTime = 2.0f; //Time for preparation of product
protected int _stock = 5; //Stock of product
GameObject currentMug = null; //Mug currently stocked in workshop
//Handle objects interactions w/ Workshop