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