Comments + Tests
This commit is contained in:
parent
538f05aa15
commit
4355551189
5 changed files with 30 additions and 19 deletions
|
@ -2,14 +2,16 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
//Define the behavior of a client
|
||||
[RequireComponent(typeof(Collider2D))]
|
||||
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;
|
||||
GameObject currentMug = null; //Mug currently held by the client
|
||||
|
||||
//Return wether the object is taken from tavernkeeper
|
||||
//Handle objects interactions w/ Workshop
|
||||
//Return wether the object is taken from tavernkeeper
|
||||
public bool use(GameObject object_used)
|
||||
{
|
||||
if(currentMug is null) //No mug in hand
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue