public void FireTo(Vector pos) { RobotEventArgs e = new RobotEventArgs(); e.Bullet = new Bullet(Position + (pos - Position).GetNormalize() * 20, (pos - Position).GetNormalize()*50, 5); FireEvent(this, e); }
public void OnFireToHandler(object sender, RobotEventArgs e) { Bullets.Add(e.Bullet); str = "MyEvent" + e.Bullet.Position.ToString(); }