public PathFollow cloneInstance(CoronaObject parent) { PathFollow path = new PathFollow(parent); path.Path.AddRange(this.Path); path.isCurve = this.isCurve; path.isCyclic = this.isCyclic; path.isEnabled = this.isEnabled; path.removeOnComplete = this.removeOnComplete; return path; }
public PathFollow cloneInstance(CoronaObject parent) { PathFollow path = new PathFollow(parent); path.Path.AddRange(this.Path); path.isCurve = this.isCurve; path.isCyclic = this.isCyclic; path.isEnabled = this.isEnabled; path.removeOnComplete = this.removeOnComplete; return(path); }
//Display Object Image Corona Object public CoronaObject(Point location, Image image) { Events = new List<CoronaEvent>(); Timers = new List<CoronaTimer>(); this.PhysicsBody = new PhysicsBody(this); this.PathFollow = new PathFollow(this); DisplayObject = new DisplayObject(image, location, this); this.isSelected = false; isVisible = true; onStartFunction = "function() \n\n end"; onPauseFunction = " function() \n\n end"; onDeleteFunction = "function() \n\n end"; this.IsHandledByTilesMap = false; }
public CoronaObject(DisplayObject displayObj) { Events = new List<CoronaEvent>(); Timers = new List<CoronaTimer>(); this.PhysicsBody = new PhysicsBody(this); this.PathFollow = new PathFollow(this); DisplayObject = displayObj; this.DisplayObject.CoronaObjectParent = this; this.isSelected = false; isVisible = true; onStartFunction = "function() \n\n end"; onPauseFunction = "function() \n\n end"; onDeleteFunction = "function() \n\n end"; this.IsHandledByTilesMap = false; }