public void EnterSceneIfScheduled(IAppNode root, IApp app) { if (this.pendingScene_ == null) { return; } app.Instantiator.NewChild(root, this.pendingScene_); root.CompileEmit <SceneInitTickEvent>()(new SceneInitTickEvent(app)); this.pendingScene_ = null; }
public void ExitSceneIfScheduled(IAppNode root) { if (this.pendingScene_ == null || this.currentNode_ == null) { return; } root.CompileEmit <SceneEndTickEvent>()(new SceneEndTickEvent()); //this.currentNode_.Discard(); this.currentNode_ = null; }