public LoadingReaderSceneInfo(User user, ILoadingScreen loadingScreen, WaitableTask <UserEncounter> encounter) { User = user; LoadingScreen = loadingScreen; Encounter = encounter; Encounter.AddOnCompletedListener(EncounterRetrieved); }
protected virtual WaitableTask <UserEncounter> GetEncounter(User user, WaitableTask <IMenuEncountersInfo> encounters, int recordNumber) { var result = new WaitableTask <UserEncounter>(); encounters.AddOnCompletedListener((encountersResult) => SetUserEncounter(result, user, encountersResult, recordNumber)); return(result); }