Little cleaner code
This commit is contained in:
parent
573dc63762
commit
c710d3c38e
3 changed files with 2 additions and 3 deletions
|
@ -9,8 +9,8 @@ public class Client_controller : MonoBehaviour
|
||||||
public float consumeTime = 3.0f; //Time to consume currentMug
|
public float consumeTime = 3.0f; //Time to consume currentMug
|
||||||
public float waitingTime = 10.0f; //Patience after ordering
|
public float waitingTime = 10.0f; //Patience after ordering
|
||||||
|
|
||||||
GameObject currentMug = null; //Mug currently held by the client
|
|
||||||
float consumeTimer;
|
float consumeTimer;
|
||||||
|
GameObject currentMug = null; //Mug currently held by the client
|
||||||
|
|
||||||
//Handle objects interactions w/ Workshop
|
//Handle objects interactions w/ Workshop
|
||||||
//Return wether the object is taken from tavernkeeper
|
//Return wether the object is taken from tavernkeeper
|
||||||
|
|
|
@ -8,7 +8,7 @@ public class Mug : MonoBehaviour, IGrabable
|
||||||
{
|
{
|
||||||
public int size = 1; //Size (1 or 2 hands) of the object
|
public int size = 1; //Size (1 or 2 hands) of the object
|
||||||
public bool dirty = false;
|
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()
|
public void use()
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,6 @@ public class Workshop : MonoBehaviour
|
||||||
public Sprite product_sprite;
|
public Sprite product_sprite;
|
||||||
public float prepTime = 2.0f; //Time for preparation of product
|
public float prepTime = 2.0f; //Time for preparation of product
|
||||||
protected int _stock = 5; //Stock of product
|
protected int _stock = 5; //Stock of product
|
||||||
|
|
||||||
GameObject currentMug = null; //Mug currently stocked in workshop
|
GameObject currentMug = null; //Mug currently stocked in workshop
|
||||||
|
|
||||||
//Handle objects interactions w/ Workshop
|
//Handle objects interactions w/ Workshop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue