You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
608 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.Networking;
  5. namespace Multiplayer
  6. {
  7. public class Player
  8. {
  9. public byte ID;
  10. public NetworkConnection Connection;
  11. public Vector3 Position { get; set; }
  12. public Quaternion Rotation { get; set; }
  13. public string Name { get; private set; }
  14. public Player(NetworkConnection Connection, string Name)
  15. {
  16. this.ID = (byte)Connection.connectionId;
  17. this.Connection = Connection;
  18. this.Name = Name;
  19. }
  20. }
  21. }