static void OnValueUpdated(object sender, FirebaseChangedEventArgs e) { if (onDataChange != null) { onDataChange(e); } }
void updatedLocationDict(object sender, FirebaseChangedEventArgs e) { Debug.Log("firebase values were added: " + e.DataSnapshot.DictionaryValue.ToStringFull()); updatedX = float.Parse(e.DataSnapshot.DictionaryValue ["PlayerX"].ToString()); updatedZ = float.Parse(e.DataSnapshot.DictionaryValue ["PlayerZ"].ToString()); bot0UpdatedX = float.Parse(e.DataSnapshot.DictionaryValue ["bot0X"].ToString()); bot0UpdatedZ = float.Parse(e.DataSnapshot.DictionaryValue ["bot0Z"].ToString()); bot0UpdatedQuaternionX = float.Parse(e.DataSnapshot.DictionaryValue ["bot0QuaternionX"].ToString()); bot0UpdatedQuaternionY = float.Parse(e.DataSnapshot.DictionaryValue ["bot0QuaternionY"].ToString()); bot0UpdatedQuaternionZ = float.Parse(e.DataSnapshot.DictionaryValue ["bot0QuaternionZ"].ToString()); bot0UpdatedQuaternionW = float.Parse(e.DataSnapshot.DictionaryValue ["bot0QuaternionW"].ToString()); bot1UpdatedX = float.Parse(e.DataSnapshot.DictionaryValue ["bot1X"].ToString()); bot1UpdatedZ = float.Parse(e.DataSnapshot.DictionaryValue ["bot1Z"].ToString()); bot1UpdatedQuaternionX = float.Parse(e.DataSnapshot.DictionaryValue ["bot1QuaternionX"].ToString()); bot1UpdatedQuaternionY = float.Parse(e.DataSnapshot.DictionaryValue ["bot1QuaternionY"].ToString()); bot1UpdatedQuaternionZ = float.Parse(e.DataSnapshot.DictionaryValue ["bot1QuaternionZ"].ToString()); bot1UpdatedQuaternionW = float.Parse(e.DataSnapshot.DictionaryValue ["bot1QuaternionW"].ToString()); bot2UpdatedX = float.Parse(e.DataSnapshot.DictionaryValue ["bot2X"].ToString()); bot2UpdatedZ = float.Parse(e.DataSnapshot.DictionaryValue ["bot2Z"].ToString()); bot2UpdatedQuaternionX = float.Parse(e.DataSnapshot.DictionaryValue ["bot2QuaternionX"].ToString()); bot2UpdatedQuaternionY = float.Parse(e.DataSnapshot.DictionaryValue ["bot2QuaternionY"].ToString()); bot2UpdatedQuaternionZ = float.Parse(e.DataSnapshot.DictionaryValue ["bot2QuaternionZ"].ToString()); bot2UpdatedQuaternionW = float.Parse(e.DataSnapshot.DictionaryValue ["bot2QuaternionW"].ToString()); }
void OnReceiveFirebaseData(object sender, FirebaseChangedEventArgs e) { shot = e.DataSnapshot; Debug.Log("ValueUpdated: " + shot.StringValue); root.ValueUpdated -= OnReceiveFirebaseData; dataRetrievalInProcess = false; dataSnapshotToleaderboardEntries(); OnDataReceived(leaderboardEntries); }
void OnDataChange(FirebaseChangedEventArgs e) { snapshots = e.DataSnapshot.DictionaryValue; }
void primaryRefValueUpdated(object sender, FirebaseChangedEventArgs e) { Debug.Log("updated transform " + e.DataSnapshot.Key); }
void primaryRefChildAdded(object sender, FirebaseChangedEventArgs e) { Debug.Log("childAdded: " + e.DataSnapshot.Key); }