public UIMotion(Widget widget, string filePath) { base.Widget = widget; this.propertyValues = new float[Enum.GetValues(typeof(PropertyType)).Length]; if (filePath != null && !filePath.Equals("")) { UIMotionData uIMotionData = new UIMotionData(); uIMotionData.Read(filePath); this.SetMotionData(uIMotionData); } }