public static HighscoreService GetInstance() { if (instance == null) { instance = new HighscoreService(); } return(instance); }
public RunescapeModule( GrandExchangeService grandExchangeService, HighscoreService highscoreService, RegistrationService registrationService, ClanMemberService clanMemberService, SpecialWeekendsService specialWeekendsService, LogService logService) : base(logService) { _grandExchangeService = grandExchangeService; _highscoreService = highscoreService; _registrationService = registrationService; _clanMemberService = clanMemberService; _specialWeekendsService = specialWeekendsService; }
public void Awake() { if (_instance == null) { _instance = this; } if (service == null) { service = new HighscoreService(); } entryContainer = transform.Find("ContainerIntregistrari"); entry = transform.Find("TemplateIntregistrare"); entry.gameObject.SetActive(false); refresh(); }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.I)) { FirebaseCommunicator.GetInstance().StartLogging(); } if (Input.GetKeyDown(KeyCode.O)) { FirebaseCommunicator.GetInstance().SaveGameData(); } if (Input.GetKeyDown(KeyCode.P)) { HighscoreService.GetInstance().GetOverAllHighscores().ContinueWithOnMainThread(task => { List <HighscoreModel> models = task.Result; foreach (HighscoreModel model in models) { Debug.Log("test: " + model.score); } }); } }