public CutSceneManager() { if (instance != null) { Log.Fatal("CutSceneManager: instance already created"); } instance = this; }
/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnDestroy()"/>.</summary> protected override void OnDestroy() { base.OnDestroy(); if (instance == this) //for undo support { instance = null; } }
/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnPostCreate(Boolean)"/>.</summary> protected override void OnPostCreate(bool loaded) { if (instance == this) //for undo support { instance = this; } base.OnPostCreate(loaded); AddTimer(); }
public CutSceneManager() { if( instance != null ) Log.Fatal( "CutSceneManager: instance already created" ); instance = this; }
/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnPostCreate(Boolean)"/>.</summary> protected override void OnPostCreate( bool loaded ) { if( instance == this )//for undo support instance = this; base.OnPostCreate( loaded ); AddTimer(); }
/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnDestroy()"/>.</summary> protected override void OnDestroy() { base.OnDestroy(); if( instance == this )//for undo support instance = null; }