private void CreateMember(SandboxMember sandboxMember) { GameObject gameObject = Instantiate(_prefabs.wUILoomModuleMembersMemberElement.gameObject, _components.memberContainer, false); WUILoomModuleMembersMemberElement wUILoomModuleMembersMemberElement = gameObject.GetComponent <WUILoomModuleMembersMemberElement>(); wUILoomModuleMembersMemberElement.Populate(this, sandboxMember); }
internal void Populate(WUILoomModules wUILoomModules, Module module) { Clear(); _components.wUILoomModules = wUILoomModules; // add data set GameObject gameObject = Instantiate(_prefabs.wUILoomModuleMembersMemberElement.gameObject, _components.memberContainer, false); WUILoomModuleMembersMemberElement wUILoomModuleMembersMemberElement = gameObject.GetComponent <WUILoomModuleMembersMemberElement>(); wUILoomModuleMembersMemberElement.Populate(this, module); foreach (KeyValuePair <string, SandboxEvent> entry in module.sandboxEventsById) { CreateMember(entry.Value); } foreach (KeyValuePair <string, SandboxCall> entry in module.sandboxCallsById) { CreateMember(entry.Value); } Stack(); }