Closed OmarAlghamdi closed 4 years ago
stamina circles appears after 36 seconds of app load because it listens to stamina updates but does not pull the value on loading
solution is simple update the onViewCreated function to pull the stamina from player object
onViewCreated
it is solved on singleton-player branch. I had to make use of singleton pattern to make it easier to access player's data (in this case stamina) from any class easily.
singleton-player
stamina circles appears after 36 seconds of app load because it listens to stamina updates but does not pull the value on loading
solution is simple update the
onViewCreated
function to pull the stamina from player object