private void UpdateReference() { if (Event == null) { Event = new TextureEvent(); } }
/// <summary> /// ストーリーボードが動作する SitrineWindow オブジェクトを指定して新しい Storyboard クラスのインスタンスを初期化します。 /// </summary> /// <param name="Window">動作対象の SitrineWindow オブジェクト。</param> public Storyboard(SitrineWindow window) { if (window == null) { throw new ArgumentNullException("window"); } this.Actions = new LinkedList <Action>(); this.Listener = new List <Func <bool> >(); this.AutoEnd = true; this.Window = window; this.waitTime = 0; this.process = new ProcessEvent(this, this.Window); this.texture = new TextureEvent(this, this.Window); this.keyboard = new KeyboardEvent(this, this.Window); this.music = new MusicEvent(this, this.Window); this.screen = new ScreenEvent(this, this.Window); Trace.WriteLine("Storyboard", "Init"); }