public Room(string name, string ownerID) { ID = Guid.NewGuid().ToString(); Name = name; OwnerID = ownerID; List <Type> missions = BaseMission.GetMissionTypes(); if (missions.Count > 0) { MissionName = missions[0].Name; } }
private void OnEnable() { roomNameInput.text = string.Empty; List <TMP_Dropdown.OptionData> options = new List <TMP_Dropdown.OptionData>(); List <Type> types = BaseMission.GetMissionTypes(); missionDropDown.ClearOptions(); foreach (Type t in types) { options.Add(new TMP_Dropdown.OptionData(t.Name.ToString())); } missionDropDown.AddOptions(options); }