Skip to content

Instantly share code, notes, and snippets.

@jhmckimm

jhmckimm/Unit.cs Secret

Created March 27, 2017 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhmckimm/2d3897905b612340d6749dadf2f0dc57 to your computer and use it in GitHub Desktop.
Save jhmckimm/2d3897905b612340d6749dadf2f0dc57 to your computer and use it in GitHub Desktop.
class Unit
{
private Vector2 position;
public Vector2 Position
{
get
{
return new Vector2(this.position);
}
}
public Unit()
{
this.position = new Vector2(0, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment