예제 #1
0
 public void Update(InputState input, Vector2 offsetFromCenter)
 {
     var aabb = new AABB(offsetFromCenter, offsetFromCenter + _dim);
     if (input.WentActive(Buttons.LeftButton) && aabb.IsPointInside(input.MouseRelativeToCenter))
     {
         _onClick();
     }
 }