Ship the WeChat hot-update catalogs and the camp, TideWhale T2, UI atlas, and animation-lab work.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
namespace AIGame.Review
|
||||
{
|
||||
public sealed class AnimationLabSeekBar : MonoBehaviour, IPointerDownHandler, IDragHandler
|
||||
{
|
||||
public CharacterAnimationLab viewer;
|
||||
public void OnPointerDown(PointerEventData e) => Apply(e);
|
||||
public void OnDrag(PointerEventData e) => Apply(e);
|
||||
void Apply(PointerEventData e)
|
||||
{
|
||||
var rect = (RectTransform)transform;
|
||||
if (viewer && RectTransformUtility.ScreenPointToLocalPointInRectangle(rect, e.position, e.pressEventCamera, out var p))
|
||||
viewer.Seek(Mathf.InverseLerp(rect.rect.xMin, rect.rect.xMax, p.x));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user