public void GetCharFromDB() { RestClient.Get <Character>($"https://project-suerto.firebaseio.com/users/{user.localId}/characters/.json?auth={user.idToken}").Then( response => { character = response; character.LoadStats(); customModifier.SetText(); Debug.Log("Char initiated"); }); }
public static void GetFromDB() { //Controller.character = new Character(); RestClient.Get <Character>("https://project-suerto.firebaseio.com/.json").Then( response => { character = response; character.LoadStats(); customModifier.SetText(); //throwTypeText.text = character.selectedStat; Debug.Log("Char initiated"); }); }