JDihlmann / P55B

Isometric mobile building game with science fiction bar setting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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