private ModuleAnimateGeneric GetDeployAnimation()
{
Debug.Log(string.Format("{0} GetDeployAnimation", _myModTag));
ModuleAnimateGeneric myAnimation = null;
try
{
myAnimation = part.FindModulesImplementing<ModuleAnimateGeneric>().SingleOrDefault();
}
catch (System.Exception x)
{
Debug.LogError(string.Format("{0} ERROR: {1}", _myModTag, x.Message));
}
if (!myAnimation)
{
// this shouldn't happen under normal circumstances
Debug.LogError(string.Format("{0} ERROR: {1}", _myModTag, "Didn't find ModuleAnimateGeneric on LES!"));
}
return myAnimation;
}