internal bool IsHit(Regulus.CustomType.Polygon collider) { if (Visible) { return(RequestHitEvent(collider)); } return(false); }
public ActorMoverAbility2(float direction, float x, float y) { _Direction = direction; _Polygon = new CustomType.Polygon(); _Polygon.Points.Add(new CustomType.Vector2(x - 0.25f, y + 0.25f)); _Polygon.Points.Add(new CustomType.Vector2(x + 0.25f, y + 0.25f)); _Polygon.Points.Add(new CustomType.Vector2(x + 0.25f, y - 0.25f)); _Polygon.Points.Add(new CustomType.Vector2(x - 0.25f, y - 0.25f)); _Polygon.BuildEdges(); _Update = _Empty; _PrevTime = LocalTime.Instance.Ticks; }