@@ -26,6 +26,7 @@ public class EventPoint : MonoBehaviour
|
||||
public FlexibleFloatTab FatherTab;
|
||||
public TMP_Text ViewText;
|
||||
|
||||
public static bool Locked = false;
|
||||
public int BeatDeviver => FatherTab.BeatDeviver;
|
||||
public void Initialize(AnimatedFloat animatedFloat)
|
||||
{
|
||||
@@ -51,8 +52,13 @@ public class EventPoint : MonoBehaviour
|
||||
}
|
||||
|
||||
public float value => FatherTab.scalevalue;
|
||||
public void Refresh()
|
||||
public void Refresh(bool changePos = false)
|
||||
{
|
||||
|
||||
if (changePos)
|
||||
{
|
||||
Initialize(animatedFloat);
|
||||
}
|
||||
UpdateValue();
|
||||
ReDraw(value);
|
||||
}
|
||||
@@ -138,6 +144,7 @@ public class EventPoint : MonoBehaviour
|
||||
|
||||
public void SelectButtonClick()//unity内:当按钮按下时
|
||||
{
|
||||
if (Locked) return;
|
||||
if (Keyboard.current.leftShiftKey.isPressed)
|
||||
{
|
||||
if (FatherTab.FatherWindow.ClipBoard[FatherTab.Title].Contains(animatedFloat))
|
||||
@@ -190,7 +197,7 @@ public class EventPoint : MonoBehaviour
|
||||
|
||||
|
||||
}
|
||||
private void UpdateValue()
|
||||
public void UpdateValue()
|
||||
{
|
||||
// 设置新的连接点并更新UI
|
||||
FatherTab.FatherWindow.ConnectedPoint = this;
|
||||
@@ -270,6 +277,7 @@ public class EventPoint : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 添加静态方法:克隆 AnimatedFloat 并应用时间偏移
|
||||
/// <summary>
|
||||
/// 克隆一个 AnimatedFloat 对象,并根据偏移量调整其开始和结束时间。
|
||||
|
||||
Reference in New Issue
Block a user