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(); }
public static void Draw(Camera3D DrawCamera) { foreach (int i in DrawIdList) { DrawItems[i].DrawInstanced(SortedChildren[i], DrawCamera); } WallInstancer.Draw(DrawCamera); bulletInstancer.DrawInstanced(DrawCamera); }
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(); }