Advertisement
Nemo048

Untitled

Jun 13th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.12 KB | None | 0 0
  1. public int Distance(NPC npc)
  2.         {
  3.             return (int)Math.Round(Math.Sqrt(Math.Pow(X - npc.X, 2) + Math.Pow(Y - npc.Y, 2)));
  4.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement