Factorisation des Usable

This commit is contained in:
Antoine H 2020-12-10 11:57:23 +01:00
parent 5b787c7da6
commit 4aa2aef787
7 changed files with 34 additions and 31 deletions

View file

@ -11,9 +11,11 @@ public class Mug : MonoBehaviour, IGrabable
public bool dirty = false;
public Consumable content{get; protected set;} = null; //new Consumable("beer",1,null);
public void use()
//TODO: Gérer objets tavernier (drop) et autres
public bool use(GameObject userObject)
{
//Do nothing
return false; //Return wether the object is taken from tavernkeeper
}
public void take() //Object taken
{