public static int HangleToInt(Hangle hangle) { if (hangle.Equals(Hangle.None)) { return(-1); } var theRest = hangle.ToString().Split('h')[1]; return(Int32.Parse(theRest)); }
public bool IsConsistent(CamSchema cas) { if (scale != FramingType.None) { if (scale != cas.scale) { //Debug.Log("not same scale"); return(false); } } if (targetLocation != "" && targetLocation != null) { if (targetLocation != cas.targetLocation) { //Debug.Log("not same location"); return(false); } } if (targetOrientation != Orient.None) { if (targetOrientation != cas.targetOrientation) { //Debug.Log("not same target Orient"); return(false); } } if (!hangle.Equals(Hangle.None)) { if (hangle != cas.hangle) { //Debug.Log("not same hangle"); return(false); } } if (!vangle.Equals(Vangle.None)) { if (vangle != cas.vangle) { //Debug.Log("not same vangle"); return(false); } } return(true); }