Ejemplo n.º 1
0
        public override ShapeBase CreateShapeInstance()
        {
            LightGridDetailShape box = new LightGridDetailShape("LightGridDetail");

            box.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
            return(box);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This function must be overridden, since we have to reset the hotspots
        /// </summary>
        /// <returns></returns>
        public override ShapeBase Clone()
        {
            LightGridDetailShape copy = (LightGridDetailShape)base.Clone();

            System.Diagnostics.Debug.Assert(!copy.Selected); // turned off in ShapeBase

            copy._hotSpotSizeX = null;
            copy._hotSpotSizeY = null;
            copy._hotSpotSizeZ = null;

            return(copy);
        }
Ejemplo n.º 3
0
 public override ShapeBase CreateShapeInstance()
 {
     LightGridDetailShape box = new LightGridDetailShape("LightGridDetail");
       box.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
       return box;
 }