Gothic-UnZENity-Project / Gothic-UnZENity

Fan project recreating Piranha Bytes' evergreens Gothic I and Gothic II in Unity Engine. Currently focussing on VR.
GNU General Public License v3.0
6 stars 1 forks source link

`AssetCache` refactor #37

Closed lmichaelis closed 3 weeks ago

lmichaelis commented 3 weeks ago

This patch moves asset loading logic from multiple places (including the unintuitively named AssetCache) into a very visible, top-level ResourceLoader class. It also moves VM logic out of AssetCache into places where the VMs are actually used, since most VM state does not need to be exposed globally (e.g. music, sounds and particle effects).