public void removeSection(MultiPropSection section) { if (sections.Remove(section.Name)) { section.destroy(this); } }
protected override void constructed() { multiProp = Owner.getElement(multiPropName) as MultiProp; if (multiProp == null) { blacklist("Cannot find MultiProp '{0}'", multiPropName); } woot1 = multiProp.addSection(new MultiPropSection("Woot1", "Box016.mesh", "Box016", new Vector3(-1, 0, 0), Quaternion.Identity, Vector3.ScaleIdentity)); woot2 = multiProp.addSection(new MultiPropSection("Woot2", "Box016.mesh", "Box016", new Vector3(1, 0, 0), Quaternion.Identity, Vector3.ScaleIdentity)); woot3 = multiProp.addSection(new MultiPropSection("Woot3", "PerfTooth01.mesh", "Tooth1collision", new Vector3(0, 0, 1), Quaternion.Identity, Vector3.ScaleIdentity)); base.constructed(); }
public bool tryGetSection(String name, out MultiPropSection value) { return(sections.TryGetValue(name, out value)); }
public MultiPropSection addSection(MultiPropSection section) { sections.Add(section.Name, section); section.create(this); return(section); }