public void toggleBodyDeployEvent() { handleAnimEvent(bodyAnimControl); foreach (Part p in part.symmetryCounterparts) { SSTUModularCargoBay mcb = p.GetComponent <SSTUModularCargoBay>(); mcb.handleAnimEvent(mcb.bodyAnimControl); } }
public void onTailLimitUpdated(BaseField field, object obj) { if ((float)obj != tailAnimLimit) { tailAnimControl.setMaxTime(tailAnimLimit); foreach (Part p in part.symmetryCounterparts) { SSTUModularCargoBay mcb = p.GetComponent <SSTUModularCargoBay>(); mcb.tailAnimLimit = tailAnimLimit; mcb.tailAnimControl.setMaxTime(tailAnimLimit); } } }