Exemplo n.º 1
0
        public override ShapeBase CreateShapeInstance()
        {
            TriggerBoxShape box = new TriggerBoxShape("TriggerBox");

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

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

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