暂存:动画曲线
还没搞完,复制粘贴也没有
This commit is contained in:
@@ -3,7 +3,10 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using Ichni;
|
||||
using Ichni.RhythmGame;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
|
||||
public class FlexibleFloatTab : MonoBehaviour
|
||||
{
|
||||
@@ -52,5 +55,31 @@ public class FlexibleFloatTab : MonoBehaviour
|
||||
|
||||
Area.localPosition = new Vector3(-FatherWindow.songBeat * BeatDeviver, 0, 0);
|
||||
BeatArea.localPosition = Area.localPosition;
|
||||
CheckForAddEvent();
|
||||
}
|
||||
|
||||
private void CheckForAddEvent()
|
||||
{
|
||||
if (Keyboard.current.rKey.wasPressedThisFrame && RectTransformUtility.RectangleContainsScreenPoint(Area, Mouse.current.position.ReadValue()))
|
||||
{
|
||||
AddEvent();
|
||||
}
|
||||
}
|
||||
|
||||
private void AddEvent()
|
||||
{
|
||||
print(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public float scalevalue => FatherWindow.scalevalue;
|
||||
public void CurveScale(float value)
|
||||
{
|
||||
foreach (EventPoint i in eventPoints)
|
||||
{
|
||||
i.ReDraw(value);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user