Exemplo n.º 1
0
 private void mousedonw(InputManager.MouseKey k, Vector2 position)
 {
     if (!Destroyed && Alive && !Attacking && k == InputManager.MouseKey.LeftKey)
     {
         Attacking = true;
         Rotation  = new Vector3(0, World.GetInstance().ActiveCam.Rotation.Y + (float)Math.PI, 0);
         Model     = FireModel;
         StartAnimation(DefaultClip, false);
         dgthrown = false;
     }
 }
Exemplo n.º 2
0
 internal MouseUpEvent(InputManager.MouseKey k, Vector2 pos)
 {
     this.k = k;
     this.pos = pos;
 }
Exemplo n.º 3
0
 internal MouseUpEvent(InputManager.MouseKey k, Vector2 pos)
 {
     this.k   = k;
     this.pos = pos;
 }
Exemplo n.º 4
0
 private static void mup(InputManager.MouseKey k, Vector2 pos)
 {
     HandleEvent(new MouseUpEvent(k, pos));
 }
Exemplo n.º 5
0
 private static void mdown(InputManager.MouseKey k, Vector2 position)
 {
     HandleEvent(new MouseDownEvent(k, position));
 }