暂存:动画曲线
还没搞完,复制粘贴也没有
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using Ichni;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame;
|
||||
using MoreMountains.Tools;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -14,7 +15,7 @@ public class SubTab : MonoBehaviour
|
||||
public Button button;
|
||||
private SongInformation songInformation;
|
||||
private TimePointerModule timePointerModule;
|
||||
public TimelineTab timelineTab;
|
||||
public TimelineTab father;
|
||||
private Timeline timeline;
|
||||
public float Time;
|
||||
public void Set(GameElement Objs, float time)
|
||||
@@ -25,32 +26,14 @@ public class SubTab : MonoBehaviour
|
||||
Time = time;
|
||||
connectObj.Add(Objs);
|
||||
button.GetComponentInChildren<TMP_Text>().text = connectObj.Count().ToString();
|
||||
transform.localPosition = new Vector3(
|
||||
timelineTab.MoveArea.localPosition.x + (time / timeline.timePerBeat * timePointerModule.timePointerInterval)
|
||||
, transform.localPosition.y, 0
|
||||
);
|
||||
transform.position = new Vector3(0, father.transform.position.y, 0);
|
||||
transform.localPosition = new Vector3(Time / timeline.timePerBeat * timePointerModule.timePointerInterval + 15f - timePointerModule.delayDistanceOffset, 0, 0);
|
||||
}
|
||||
// public void Update()
|
||||
// {
|
||||
// if (Time - timePointerModule.leftSideSongTime < 0)
|
||||
// {
|
||||
// transform.localScale = Vector3.zero;
|
||||
// return;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// transform.localScale = Vector3.one;
|
||||
// float devideTime = Time - timePointerModule.leftSideSongTime;
|
||||
// transform.position = new Vector3(
|
||||
// devideTime / timeline.timePerBeat * timePointerModule.timePointerInterval + 165f - timePointerModule.delayDistanceOffset
|
||||
// , transform.position.y, 0
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
|
||||
public void GetClick()
|
||||
{
|
||||
EditorManager.instance.uiManager.hierarchy.FindTab(connectObj[0]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user