public playerStatus status; //håller reda på isrunning mm #endregion Fields #region Constructors public Player(Vector3 pos, GraphicsDevice device) { position = pos; camera = new Camera(device, getCameraPos()); status = new playerStatus(); rifle = new Weapon(camera, status); speedY = 0.0f; }
public Player(float x, float y, float z, Int32 identity, Int32 charModel, GraphicsDevice device) { ChangePosition(x, y, z); id = identity; Console.WriteLine("id: " + id.ToString()); Globals.player.id = identity; alive = true; model = charModel; camera = new Camera(device, getCameraPos()); status = new playerStatus(); rifle = new Weapon(camera, status); speedY = 0.0f; Globals.player.model = charModel; }