Add dirty attribute on Mug

This commit is contained in:
Antoine H 2020-12-07 15:42:25 +01:00
parent e35f652c56
commit 573dc63762
3 changed files with 8 additions and 4 deletions

View file

@ -7,7 +7,7 @@ using UnityEngine;
public class Mug : MonoBehaviour, IGrabable
{
public int size = 1; //Size (1 or 2 hands) of the object
// bool dirty = false;
public bool dirty = false;
public Consumable content= null; //new Consumable("beer",1,null);
public void use()
@ -38,6 +38,7 @@ public class Mug : MonoBehaviour, IGrabable
public void consume() //Empty Mug of its Consumable
{
content=null;
dirty = true; //Used and dirty
}
// Start is called before the first frame update