protected void LoadItems <W>() where W : IPaginated, new() { _known_items.Clear(); LoginManager.LoadAltVRItems((W content) => content.iterator <U>(EnterItemData)); if (_known_items.Count < 1) { ShowNotification(new GUIContent("Item list is empty"), 5.0f); } }
private void LoadKits() { LoginManager.LoadAltVRItems((kitsJSON content) => { foreach (kitJSON kit in content.kits) { EnterKitData(kit); } }); if (_known_kits.Count == 0) { ShowNotification(new GUIContent("No own kits"), 5.0f); } }
private void LoadTemplates() { LoginManager.LoadAltVRItems((templatesJSON content) => { foreach (templateJSON tmpl in content.space_templates) { EnterTemplateData(tmpl); } }); if (_known_templates.Count == 0) { ShowNotification(new GUIContent("No own kits"), 5.0f); } }