mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
42 lines
881 B
C#
42 lines
881 B
C#
namespace CinemaDirector
|
|
{
|
|
[TimelineTrack("Global Track", TimelineTrackGenre.GlobalTrack, new CutsceneItemGenre[] { CutsceneItemGenre.GlobalItem })]
|
|
public class GlobalItemTrack : TimelineTrack
|
|
{
|
|
public CinemaGlobalEvent[] Events
|
|
{
|
|
get
|
|
{
|
|
return GetComponentsInChildren<CinemaGlobalEvent>();
|
|
}
|
|
}
|
|
|
|
public CinemaGlobalAction[] Actions
|
|
{
|
|
get
|
|
{
|
|
return GetComponentsInChildren<CinemaGlobalAction>();
|
|
}
|
|
}
|
|
|
|
public override TimelineItem[] TimelineItems
|
|
{
|
|
get
|
|
{
|
|
CinemaGlobalEvent[] events = Events;
|
|
CinemaGlobalAction[] actions = Actions;
|
|
TimelineItem[] array = new TimelineItem[events.Length + actions.Length];
|
|
for (int i = 0; i < events.Length; i++)
|
|
{
|
|
array[i] = events[i];
|
|
}
|
|
for (int j = 0; j < actions.Length; j++)
|
|
{
|
|
array[j + events.Length] = actions[j];
|
|
}
|
|
return array;
|
|
}
|
|
}
|
|
}
|
|
}
|