I am trying to implement an elo update system using playfab.My game is server authorative so i want the server to set this data. I store player ELO's in entity objects. I have 2 players. This means I call PlayFabDataAPI.GetObjects for player 1, then i call PlayFabDataAPI.GetObjects for player 2 in the successful return call back off original function. Then I have 2 more layers of SetObject api calls to finish updating the elos. This creates really ugly code. Is there anything I can do to avoid this callback hell in playfab?
Maybe is there a way i can call GetObjects functions together than after they both complete I can call set objects together?