Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int Distance(NPC npc)
- {
- return (int)Math.Round(Math.Sqrt(Math.Pow(X - npc.X, 2) + Math.Pow(Y - npc.Y, 2)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement