Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public static string CheckPlayer()
  2. {
  3.  
  4. Type t = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType;
  5.  
  6. if (t == typeof(PlayerOne))
  7. {
  8. return "PlayerOne";
  9. }
  10. else
  11. {
  12. return "PlayerTwo";
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement