示例#1
0
 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);
 }
示例#2
0
文件: Game.cs 项目: reged/RBXSolution
 public void OnFireToHandler(object sender, RobotEventArgs e)
 {
     Bullets.Add(e.Bullet);
     str = "MyEvent" + e.Bullet.Position.ToString();
 }