public override void HandleSceneOnEnter(SceneOnEnterEvent e) { this._previousSceneType = e.PreviousScene.GetType(); var titleBar = new Titlebar(this._titlebarCaption); this.AddChild(titleBar); this.AddChild(new FirstPersonSceneBackArrow(GoBack)); this.Events.AddEvent(PriorityType.ANIMATION, new Titlebar.FadeAndRemoveEvent(this, titleBar)); }
public FadeAndRemoveEvent(Scene scene, Titlebar target) : base(FadeAndRemoveEventID, 100, 2500) { this._scene = scene; this._target = target; this._counter = 0; }