//----------------------------------------------------------------------------------------------------------------------------------------------// public void GetGroupInfo(DataSnapshot snap) { if (snap.Child("Groups").HasChildren) { groupManager.ClearList(); for (int i = 1; i <= snap.Child("Groups").ChildrenCount; i++) { groupManager.InstantiateGroup(snap.Child("Groups").Child("Group" + i.ToString()).Value.ToString()); } } }