예제 #1
0
        public void Despawn(TimelineEventData data)
        {
            TimelineEventButton button = eventButtons.Find((TimelineEventButton b) => b.TimelineEventData == data);

            eventButtons.Remove(button);
            Destroy(button.gameObject);
        }
예제 #2
0
        public void Spawn(TimelineEventData data)
        {
            TimelineEventButton newButton = Instantiate(baseEventButton, TimelineEventButtonContainer);

            newButton.SetTime(this, data, IntervalObjectSpawnInterval, IntervalObjectWidth);
            eventButtons.Add(newButton);
            OnEventSelected(data);
        }
예제 #3
0
        public void OnTimeChanged(TimelineEventData timelineEventData)
        {
            TimelineEventButton button = eventButtons.Find((TimelineEventButton b) => b.TimelineEventData == timelineEventData);

            if (button != null)
            {
                button.SetTime(this, timelineEventData, IntervalObjectSpawnInterval, IntervalObjectWidth);
            }
        }