void Start() { RealtimeDBFactory.get().initDoneCB().add(i => { realtimeDB = i; realtimeDB.subscribe("geo", s => { onReslut(s); }); }); }
private void init(RealtimeDB rdb) { string hashPath = getPath(DATA_HASH_PATH); Debug.Log("debug:" + dev + " type:" + GetType() + " init:" + rdb + " hashPath:" + hashPath); rdb.subscribe(hashPath, onHash); }