Inheritance: MapGeneralObject
示例#1
0
        /// <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);
        }
示例#2
0
 public Darkness()
 {
     if( instance != null )
         Log.Fatal( "Darkness: instance != null" );
     instance = this;
 }
示例#3
0
        /// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnDestroy()"/>.</summary>
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if (instance == this)//for undo support
                instance = null;
        }