Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1.     public int player1hp;
  2.     public int player2hp;
  3.     public int something;
  4.     public int Player
  5.     {
  6.         get {
  7.             if (something == 1)
  8.                 return player1hp;
  9.             else
  10.                 return player2hp;
  11.         }
  12.         set
  13.         {
  14.             if (something == 1)
  15.                 player1hp=value;
  16.             else
  17.                 player2hp=value;
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement