Пример #1
0
        public override ShapeBase CreateShapeInstance()
        {
            LightGridBoxShape box = new LightGridBoxShape("LightGridBox");

            box.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
            return(box);
        }
Пример #2
0
        /// <summary>
        /// This function must be overridden, since we have to reset the hotspots
        /// </summary>
        /// <returns></returns>
        public override ShapeBase Clone()
        {
            LightGridBoxShape copy = (LightGridBoxShape)base.Clone();

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

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

            return(copy);
        }
Пример #3
0
 public override ShapeBase CreateShapeInstance()
 {
     LightGridBoxShape box = new LightGridBoxShape("LightGridBox");
       box.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
       return box;
 }