public override ShapeBase CreateShapeInstance() { ProjectorShape projector = new ProjectorShape("Projector"); projector.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return(projector); }
/// <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); }
public override ShapeBase CreateShapeInstance() { ProjectorShape projector = new ProjectorShape("Projector"); projector.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return projector; }