ggg
This commit is contained in:
@@ -33,6 +33,8 @@ namespace Ichni.Editor
|
||||
|
||||
public RectTransform GetinputArea;
|
||||
|
||||
private string BeatText;
|
||||
private string TimeText;
|
||||
public void Update()
|
||||
{
|
||||
if (EditorManager.instance.musicPlayer.isPlaying) UpdateTime();
|
||||
@@ -43,7 +45,14 @@ namespace Ichni.Editor
|
||||
DetectSetRange();
|
||||
DetectPointer();
|
||||
}
|
||||
|
||||
if (BeatField.text != BeatText)
|
||||
{
|
||||
BeatField.text = BeatText;
|
||||
}
|
||||
if (TimeField.text != TimeText)
|
||||
{
|
||||
TimeField.text = TimeText;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -154,8 +163,8 @@ namespace Ichni.Editor
|
||||
}
|
||||
private void UpdateTime()
|
||||
{
|
||||
TimeField.text = songTime.ToString("F2");
|
||||
BeatField.text = songBeat.ToString("F2");
|
||||
TimeText = songTime.ToString("F2");
|
||||
BeatText = songBeat.ToString("F2");
|
||||
}
|
||||
|
||||
private Tweener _activeTweener = null; // 保存当前动画的引用
|
||||
|
||||
Reference in New Issue
Block a user