Zentrales Script zum Speichern gesamter Data
thecrusticroc opened this issue · comments
Created static Singleton class for GameSystem with unlockables and values which is accessable from ANYWHERE.
- Access recipeUnlocks, workerUnlocks with GameSystem.Instance.variable and modify it with e.g. GameSystem.Instance.UnlockRecipe(ID), which sets the ID to true.
- Acess objectAmount, ingredientAmount, money, happiness with GameSystem.Instance.variable and modify it with e.g. GameSystem.Instance.AddIngredient(ID, amount) or SubIngredient(ID, amount) or SetIngredient(ID, amount)
TODO: Load/Save from binary or smth