/// <summary> /// Overridden function to create the shape instance /// </summary> /// <returns></returns> public override ShapeBase CreateShapeInstance() { CameraPositionShape shape = new CameraPositionShape("CameraPosition"); shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return(shape); }
/// <summary> /// Overridden clone function /// </summary> /// <returns></returns> public override ShapeBase Clone() { CameraPositionShape copy = (CameraPositionShape)base.Clone(); copy._shortCut = null; copy._key = Keys.None; return(copy); }
/// <summary> /// Overridden function to create the shape instance /// </summary> /// <returns></returns> public override ShapeBase CreateShapeInstance() { CameraPositionShape shape = new CameraPositionShape("CameraPosition"); shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return shape; }
public CameraPositionShortCut(CameraPositionShape shape) : base(Keys.None) { iUniqueAdvance++; _shape = shape; }