feat(eye): 添加聚焦/想象演出眨眼调参项
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -77,6 +77,16 @@ namespace AibisDream
|
|||||||
public float blinkCloseDuration = 0.09f;
|
public float blinkCloseDuration = 0.09f;
|
||||||
public float blinkOpenDuration = 0.14f;
|
public float blinkOpenDuration = 0.14f;
|
||||||
|
|
||||||
|
[Header("Transition Blink")]
|
||||||
|
[Tooltip("聚焦:单次眨眼开眼到该进度时触发变清晰(0=刚睁眼,1=完全睁开)。")]
|
||||||
|
[Range(0f, 1f)] public float focusEffectAtBlinkOpen = 0.85f;
|
||||||
|
|
||||||
|
[Tooltip("想象:两次眨眼之间的间隔(秒)。")]
|
||||||
|
public float imagineBlinkGap = 0.04f;
|
||||||
|
|
||||||
|
[Tooltip("想象:第二次眨眼开眼到该进度时触发上色。")]
|
||||||
|
[Range(0f, 1f)] public float imagineEffectAtBlinkOpen = 1f;
|
||||||
|
|
||||||
public float GetDurationForState(EyeSystem.EyeColorState state) => state switch
|
public float GetDurationForState(EyeSystem.EyeColorState state) => state switch
|
||||||
{
|
{
|
||||||
EyeSystem.EyeColorState.CanImagineColor => imagineColorDuration,
|
EyeSystem.EyeColorState.CanImagineColor => imagineColorDuration,
|
||||||
|
|||||||
Reference in New Issue
Block a user