@@ -17,22 +17,28 @@ public class SubTab : MonoBehaviour
|
||||
private TimePointerModule timePointerModule;
|
||||
public TimelineTab father;
|
||||
private Timeline timeline;
|
||||
public float Time;
|
||||
public float time;
|
||||
|
||||
public void Set(IBaseElement Objs, float time)
|
||||
{
|
||||
songInformation = EditorManager.instance.songInformation;
|
||||
timePointerModule = EditorManager.instance.uiManager.timeline.timePointerModule;
|
||||
timeline = EditorManager.instance.uiManager.timeline;
|
||||
Time = time;
|
||||
this.time = time;
|
||||
connectObj.Add(Objs);
|
||||
button.GetComponentInChildren<TMP_Text>().text = connectObj.Count().ToString();
|
||||
|
||||
transform.localPosition = new Vector3(Time / timeline.timePerBeat * timePointerModule.timePointerInterval + 15f - timePointerModule.delayDistanceOffset,
|
||||
-(42.5f + (father.TabIndex * 25)), 0);
|
||||
//transform.position = new Vector3(transform.position.x, father.Title.transform.position.y, 0);
|
||||
transform.localPosition = new Vector3((this.time / timeline.timePerBeat * timePointerModule.timePointerInterval),
|
||||
-(42.5f + ((father.TabIndex + 1) * 25)), 0);
|
||||
//transform.position = new Vector3(transform.position.x, father.Title.transform.position.y + 12, 0);
|
||||
}
|
||||
void Update()
|
||||
{
|
||||
if (Time.frameCount % 3 == 0)
|
||||
{
|
||||
transform.localScale = new Vector3(time > songInformation.songTime ? 1f : 0f, 1f, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
// public void GetClick()//?
|
||||
// {
|
||||
// if (connectObj[0] is GameElement)
|
||||
|
||||
Reference in New Issue
Block a user