public static void ROTATE_SPEED_WINDOW(txUIObject obj, Vector3 speed, Vector3 startAngle, Vector3 rotateAccelerationValue) { CommandWindowRotateSpeed cmd = mCommandSystem.newCmd <CommandWindowRotateSpeed>(false); cmd.mRotateSpeed = speed; cmd.mStartAngle = startAngle; cmd.mRotateAcceleration = rotateAccelerationValue; mCommandSystem.pushCommand(cmd, obj); }
// 延迟恒定速度旋转窗口 public static void ROTATE_SPEED_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, Vector3 speed, Vector3 startAngle, Vector3 rotateAccelerationValue) { CommandWindowRotateSpeed cmd = mCommandSystem.newCmd <CommandWindowRotateSpeed>(false, true); cmd.mRotateSpeed = speed; cmd.mStartAngle = startAngle; cmd.mRotateAcceleration = rotateAccelerationValue; mCommandSystem.pushDelayCommand(cmd, obj, delayTime); script.addDelayCmd(cmd); }
public static void ROTATE_SPEED_WINDOW(txUIObject obj, Vector3 speed, Vector3 startAngle, Vector3 rotateAccelerationValue) { if (!checkStaticPanel(obj)) { return; } CommandWindowRotateSpeed cmd = newCmd(out cmd, false); cmd.mRotateSpeed = speed; cmd.mStartAngle = startAngle; cmd.mRotateAcceleration = rotateAccelerationValue; pushCommand(cmd, obj); }
public static CommandWindowRotateSpeed ROTATE_SPEED_WINDOW_DELAY(LayoutScript script, txUIObject obj, float delayTime, Vector3 speed, Vector3 startAngle, Vector3 rotateAccelerationValue) { if (!checkStaticPanel(obj)) { return(null); } CommandWindowRotateSpeed cmd = newCmd(out cmd, false, true); cmd.mRotateSpeed = speed; cmd.mStartAngle = startAngle; cmd.mRotateAcceleration = rotateAccelerationValue; pushDelayCommand(cmd, obj, delayTime); script.addDelayCmd(cmd); return(cmd); }