public void CreateCap(SLO_Join join) { print("Creating cap"); SLO_JoinCap newCap = new GameObject("Cap" + Caps.Count).AddComponent <SLO_JoinCap>(); newCap.transform.SetParent(transform); newCap.Init(join); Caps.Add(newCap); }
public void Open() { Caps.Clear(); var rc = DS.Open(); if (rc == ReturnCode.Success) { foreach (var c in DS.Capabilities.CapSupportedCaps.GetValues().Select(o => new CapVM(DS, o))) { Caps.Add(c); } } }