狗屎Minimax坏我代码
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace SLSUtilities.Feedback
|
||||
{
|
||||
@@ -9,26 +11,26 @@ namespace SLSUtilities.Feedback
|
||||
/// Clip 级设置如果 useTimeScale = true 则覆盖 Data 级设置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class FeedbackTimeSettings
|
||||
public partial class FeedbackTimeSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否使用时间缩放。默认 false 表示不受任何时间缩放影响。
|
||||
/// </summary>
|
||||
public bool useTimeScale;
|
||||
[EnumButtons]
|
||||
public TimeScaleType timeScaleType = TimeScaleType.Global;
|
||||
|
||||
[FormerlySerializedAs("useDynamicTimeScale")]
|
||||
[Tooltip("是否动态获取当前的时间缩放。启用后,FeedbackPlayer 每帧计算当前综合时间缩放系数并传递给 FeedbackAction。")]
|
||||
[HideIf("timeScaleType", TimeScaleType.Unscaled)]
|
||||
[LabelText("Apply Dynamic")]
|
||||
public bool applyDynamicTimeScale = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 受 TimeManager.globalTimeScale 影响。
|
||||
/// </summary>
|
||||
public bool affectedByGlobalTimeScale;
|
||||
|
||||
/// <summary>
|
||||
/// 受 TimeManager 的分组时间影响(player/enemy 等)。
|
||||
/// </summary>
|
||||
public bool affectedByGroupTimeScale;
|
||||
|
||||
/// <summary>
|
||||
/// 受角色本地 localTimeScale 影响。
|
||||
/// </summary>
|
||||
public bool affectedByLocalTimeScale;
|
||||
public partial class FeedbackTimeSettings
|
||||
{
|
||||
public enum TimeScaleType
|
||||
{
|
||||
Unscaled = 0,
|
||||
Global = 1,
|
||||
Group = 2,
|
||||
Local = 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user