Files
Pal3.Unity/Assets/Scripts/Pal3/Command/SceCommands/CameraPushCommand.cs
T

52 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2023, Jiaqi Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Pal3.Command.SceCommands
{
#if PAL3
[AvailableInConsole]
[SceCommand(32, "镜头推动作," +
"参数:最后from与lookAt之间的距离(原GameBox引擎下的距离单位),动作时间,插值类型(0:Linear,1:Sine)")]
public class CameraPushCommand : ICommand
{
public CameraPushCommand(
float gameBoxDistance,
float duration,
int curveType)
{
GameBoxDistance = gameBoxDistance;
Duration = duration;
CurveType = curveType;
}
public float GameBoxDistance { get; }
public float Duration { get; }
public int CurveType { get; }
}
#elif PAL3A
[AvailableInConsole]
[SceCommand(32, "镜头推动作," +
"参数:最后from与lookAt之间的距离(原GameBox引擎下的距离单位),动作时间,插值类型(0:Linear,1:Sine),同步(1暂停当前脚本运行,0异步进行动画且继续执行脚本)")]
public class CameraPushCommand : ICommand
{
public CameraPushCommand(
float gameBoxDistance,
float duration,
int curveType,
int synchronous)
{
GameBoxDistance = gameBoxDistance;
Duration = duration;
CurveType = curveType;
Synchronous = synchronous;
}
public float GameBoxDistance { get; }
public float Duration { get; }
public int CurveType { get; }
public int Synchronous { get; }
}
#endif
}