public void FireShotByPlayer(Vector2D startPosition) { var bulletTrail = new Line2D(startPosition, new Vector2D(1, startPosition.Y), Color.Orange) { RenderLayer = (int)DefRenderLayer.Player - 1 }; bulletTrail.Add(new Duration(0.2f)).Start <SelfDestructTimer>(); }
public void FireShotByEnemy(Vector2D startPosition) { var bulletTrail = new Line2D(startPosition, new Vector2D(0, startPosition.Y), Color.Red); bulletTrail.Add(new Duration(0.1f)).Start <SelfDestructTimer>(); }