毫无头绪!
This commit is contained in:
@@ -17,6 +17,7 @@ public class TimelineTab : MonoBehaviour
|
||||
public List<GameElement> GelementPointer;
|
||||
|
||||
public RectTransform MoveArea;
|
||||
public RectTransform title;
|
||||
public Dictionary<float, SubTab> SubTabs = new();
|
||||
|
||||
public Timeline timeline;
|
||||
@@ -40,7 +41,7 @@ public class TimelineTab : MonoBehaviour
|
||||
else
|
||||
{
|
||||
SubTab i = Instantiate(ElementPrefab, MoveArea.transform);
|
||||
|
||||
i.timelineTab = this;
|
||||
i.Set(gameElement, Judgetime);
|
||||
SubTabs.Add(Judgetime, i);
|
||||
}
|
||||
@@ -53,7 +54,7 @@ public class TimelineTab : MonoBehaviour
|
||||
public void Update()
|
||||
{
|
||||
MoveArea.position = new Vector3(
|
||||
timeline.timePointerModule.timePointerArea.position.x,
|
||||
-(timeline.songTime / timeline.timePerBeat) * timeline.timePointerModule.timePointerInterval,
|
||||
MoveArea.position.y,
|
||||
MoveArea.position.z);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user