예제 #1
0
    public void ActiveKeyframe(KeyframeBase data)
    {
        foreach (TimelineKeyframe tlk in timelineKeyframes)
        {
            tlk.Reset();
        }
        Vector2 pos = offset + new Vector2((data.time * separation), 0);

        timelineMarker.SetX(pos.x);
        timeline.JumpTo(data.time);
        UpdateField();
    }
예제 #2
0
    public void Open()
    {
        World.Instance.scenesManager.cam.GetComponent <CameraInScene>().SetFilming(true);
        panel.SetActive(true);
        Utils.RemoveAllChildsIn(container);

        timelineMarker = Instantiate(timelineMarker_to_instantiate);

        timelineMarker.transform.SetParent(container);
        timelineMarker.transform.localScale = Vector2.one;
        timelineMarker.SetX(0);

        all = new List <TimeLineCharacter> ();
        timelineKeyframes = new List <TimelineKeyframe> ();

        Add();
    }