ServicePlayer.cs 534 B

12345678910111213141516171819202122232425262728293031323334
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. public class ServicePlayer
  5. {
  6. public const int RELIVE_INTERVAL = 15*1000;
  7. public int userId;
  8. public string nickName = "";
  9. public int teamId;
  10. public int aiTakerId = -1;
  11. public int craftId = -1;
  12. public int kill = 0;
  13. public int assists = 0;
  14. public int death = 0;
  15. public int joinTime = 0;
  16. public ServicePlayer(int userId, string nick)
  17. {
  18. this.userId = userId;
  19. this.nickName = nick;
  20. }
  21. public bool IsAI()
  22. {
  23. return userId < 0;
  24. }
  25. }