public override void Create()
        {
            ParticleManager.Load();
#if WINDOWS && EDITOR
            if (ParentLevel.LevelForEditing)
            {
                AddRightClickEvent("Save Ship", SaveShip);
            }
#endif
            base.Create();
        }
        public override void Create()
        {
            Load();
            ParticleManager.Load();

            ForwardChildren       = AddTag(GameObjectTag._3DForward);
            OverDrawViewsChildren = AddTag(GameObjectTag.OverDrawViews);
            Draw2DChildren        = AddTag(GameObjectTag._2DForward);
            AddTag(GameObjectTag.Form);

            base.Create();
        }
Ejemplo n.º 3
0
        public override void Create()
        {
            SoundLibrary.Load();
            InstanceManager.Clear();
            ParticleManager.Load();
            Load();

            OverDrawChildren2D    = AddTag(GameObjectTag._2DOverDraw);
            OverDrawViewsChildren = AddTag(GameObjectTag.OverDrawViews);
            Draw2DChildren        = AddTag(GameObjectTag._2DForward);

#if EDITOR && WINDOWS
            if (ParentLevel.LevelForEditing)
            {
                PreDrawChildren = AddTag(GameObjectTag._2DPreDraw);
            }
            else
#endif
            {
                ForwardChildren    = AddTag(GameObjectTag._3DForward);
                BackgroundChildren = AddTag(GameObjectTag._3DBackground);
                DepthOverChildren  = AddTag(GameObjectTag._3DDepthOver);
            }

            SolidChildren      = AddTag(GameObjectTag._2DSolid);
            ShipChildren       = AddTag(GameObjectTag.ShipGameUnitBasic);
            DistortionChildren = AddTag(GameObjectTag._3DDistortion);

            SolidQuadGrid = Add(new QuadGrid());
#if DRAWQUAD
            DrawQuadGrid = Add(new QuadGrid());
#endif

            FactionManager.Init();

            base.Create();
        }