Exemplo n.º 1
0
        public override ShapeBase CreateShapeInstance()
        {
            ProjectorShape projector = new ProjectorShape("Projector");

            projector.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
            return(projector);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Overridden clone function that removes the hotspots again
        /// </summary>
        /// <returns></returns>
        public override ShapeBase Clone()
        {
            ProjectorShape copy = base.Clone() as ProjectorShape;

            copy._hotSpotConeAngleX   = null;
            copy._hotSpotConeAngleY   = null;
            copy._hotSpotLength       = null;
            copy._hotSpotFadeOutDist1 = null;
            copy._hotSpotFadeOutDist2 = null;

            if (copy._shaderFX != null)
            {
                this._shaderFX = (ShaderEffectConfig)copy._shaderFX.Clone();
            }

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