public void Destroy()
        {
#if EDITOR && WINDOWS
            if (!ParentNode.ParentLevel.LevelForEditing)
#endif
            WallInstancer.RemoveChild(this);
        }
        public override void Destroy()
        {
#if WINDOWS && EDITOR
            if (!ParentLevel.LevelForEditing)
#endif
            WallInstancer.RemoveChild(this);

            base.Destroy();
        }
예제 #3
0
        public static void Draw(Camera3D DrawCamera)
        {
            foreach (int i in DrawIdList)
            {
                DrawItems[i].DrawInstanced(SortedChildren[i], DrawCamera);
            }

            WallInstancer.Draw(DrawCamera);

            bulletInstancer.DrawInstanced(DrawCamera);
        }
예제 #4
0
 public static void Clear()
 {
     WallInstancer.Clear();
     DrawIdList.Clear();
     foreach (LinkedList <BasicShipGameObject> list in SortedChildren)
     {
         if (list != null)
         {
             list.Clear();
         }
     }
 }
        public override void CreateInGame()
        {
#if WINDOWS && EDITOR
            if (!ParentLevel.LevelForEditing)
#endif
            {
                WallInstancer.AddChild(this);
                if (wallConnector != null)
                {
                    WallInstancer.AddChild(wallConnector);
                }
            }

            base.CreateInGame();
        }