Ejemplo n.º 1
0
 public void removeSection(MultiPropSection section)
 {
     if (sections.Remove(section.Name))
     {
         section.destroy(this);
     }
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public bool tryGetSection(String name, out MultiPropSection value)
 {
     return(sections.TryGetValue(name, out value));
 }
Ejemplo n.º 4
0
 public MultiPropSection addSection(MultiPropSection section)
 {
     sections.Add(section.Name, section);
     section.create(this);
     return(section);
 }