//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // HSL public static void HSL_WINDOW(txUIObject obj, Vector3 hsl) { CommandWindowHSLTremble cmd = mCommandSystem.newCmd <CommandWindowHSLTremble>(false, false); cmd.mName = ""; cmd.mOnceLength = 0.0f; cmd.mStartHSL = hsl; cmd.mTargetHSL = hsl; mCommandSystem.pushCommand(cmd, obj); }
public static void HSL_KEYFRAME_WINDOW(txUIObject obj, string keyframe, Vector3 start, Vector3 target, float onceLength, bool loop, float offset) { if (keyframe == "" || MathUtility.isFloatZero(onceLength)) { UnityUtility.logError("时间或关键帧不能为空,如果要停止组件,请使用void HSL_WINDOW(txUIObject obj, Vector3 hsl)"); } CommandWindowHSLTremble cmd = mCommandSystem.newCmd <CommandWindowHSLTremble>(false, false); cmd.mName = keyframe; cmd.mLoop = loop; cmd.mOnceLength = onceLength; cmd.mOffset = offset; cmd.mStartHSL = start; cmd.mTargetHSL = target; mCommandSystem.pushCommand(cmd, obj); }