First Reward system (Gold)

This commit is contained in:
Antoine H 2021-01-07 14:45:19 +01:00
parent caf73dfc25
commit 998cc81e0a
5 changed files with 33 additions and 6 deletions

View file

@ -43,10 +43,12 @@ public class Mug : MonoBehaviour, IGrabable
Debug.Log(gameObject.name+" cannot be filled (already full) with "+new_content.Type);
}
}
public void consume() //Empty Mug of its Consumable
public Consumable consume() //Return Mug content and empty it
{
Consumable output = content;
content=null;
dirty = true; //Used and dirty
return output;
}
// Start is called before the first frame update