public void OnSetById() { User kajiya = new User("k-r", "gmail", 1); string json = JsonUtility.ToJson(kajiya); MFBFNetwork.SetById(KEY, _userid, json, null, null); User hayato = new User("hayato", "ymail", 2); json = JsonUtility.ToJson(hayato); MFBFNetwork.SetById(KEY, "dadusadhasuod", json, null, null); User shouhei = new User("shouhei", "smail", 3); json = JsonUtility.ToJson(shouhei); MFBFNetwork.SetById(KEY, "dashoduasdao", json, null, null); }
public static void SetById(string key, string id, string json, Action onSuccess, Action onFailed) { #if USE_FIREBASE MFBFNetwork.SetById(key, id, json, onSuccess, onFailed); #endif }