public EMMotionProperties(MotionType motionType){ transform = new EMTransform(); this.motionType = motionType; sound = null; volume =1; autoClose = false; autoCloseDelayTime =0; isMove = false; moveDirection = MotionDirection.Top; moveEasing = new EMEasingParameter(); isRotate = false; rotateEasing= new EMEasingParameter(); isAlpha = false; alphaEasing = new EMEasingParameter(); isScale = false; scaleEasing = new EMEasingParameter(); if (motionType == MotionType.OneShot){ isInside = true; } else{ isInside = false; } }
public EMMotionProperties(MotionType motionType) { transform = new EMTransform(); this.motionType = motionType; sound = null; volume = 1; autoClose = false; autoCloseDelayTime = 0; isMove = false; moveDirection = MotionDirection.Top; moveEasing = new EMEasingParameter(); isRotate = false; rotateEasing = new EMEasingParameter(); isAlpha = false; alphaEasing = new EMEasingParameter(); isScale = false; scaleEasing = new EMEasingParameter(); if (motionType == MotionType.OneShot) { isInside = true; } else { isInside = false; } }
void UIEaseInspector(EMEasingParameter t){ t.easeType = (EMEasing.EaseType)EditorGUILayout.EnumPopup("Ease",t.easeType); t.time = EditorGUILayout.FloatField("Ease time",t.time); t.delay = EditorGUILayout.FloatField("Delay to start",t.delay); }
void UIEaseInspector(EMEasingParameter t) { t.easeType = (EMEasing.EaseType)EditorGUILayout.EnumPopup("Ease", t.easeType); t.time = EditorGUILayout.FloatField("Ease time", t.time); t.delay = EditorGUILayout.FloatField("Delay to start", t.delay); }