private void updateAnimationControl(string id, SingleModelData model, int layer) { if (string.IsNullOrEmpty(id)) { return; } SSTUAnimateControlled module = SSTUAnimateControlled.locateAnimationController(part, id); if (module == null) { MonoBehaviour.print("ERROR: Could not locate controller for name: " + id); return; } else if (module != null && model.model != null) { module.initializeExternal(model.getAnimationData(model.model.transform, layer)); } else if (module != null) { module.initializeExternal(new SSTUAnimData[0]); } }
private void updateAnimationControl(string id, SingleModelData model, int layer) { if (string.IsNullOrEmpty(id)) { return; } SSTUAnimateControlled module = SSTUAnimateControlled.locateAnimationController(part, id); if (module != null) { module.initializeExternal(model.getAnimationData(model.model.transform, layer)); } }