Announcement

Collapse
No announcement yet.

Where is the best place to handle various logic?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Where is the best place to handle various logic?

    I have map of village with different buildings (Actors). I have no player as visible entity in the world. I load user data from PlayFab, parse it and then initialize all buildings with loaded states (timers of upgrade, resources, level etc.). Also, when timer of upgrade is finished, I update PlayFab data with new values of level, resource count etc. So, right now I placed all logic of loading/sending data in PlayerState, but I think that this is not a good place for this kind of logic. Where I must place it? How I must store and upgrade loaded from PlayFab data?
    Thank you.
Working...
X