36 lines
456 B
C#
36 lines
456 B
C#
![]() |
using UnityEngine;
|
|||
|
using System.Collections;
|
|||
|
|
|||
|
public class PlayerInfo
|
|||
|
{
|
|||
|
public string username = "[{\"username\":\"test\", \"user_id\": 1}]";
|
|||
|
public int user_id = 0;
|
|||
|
|
|||
|
public PlayerInfo()
|
|||
|
{
|
|||
|
username = "";
|
|||
|
user_id = 0;
|
|||
|
}
|
|||
|
|
|||
|
public void setUsername(string user)
|
|||
|
{
|
|||
|
username = user;
|
|||
|
}
|
|||
|
|
|||
|
public string getUsername()
|
|||
|
{
|
|||
|
return username;
|
|||
|
}
|
|||
|
|
|||
|
public void setUserId(int id)
|
|||
|
{
|
|||
|
user_id = id;
|
|||
|
}
|
|||
|
|
|||
|
public int getUserId()
|
|||
|
{
|
|||
|
return user_id;
|
|||
|
}
|
|||
|
}
|
|||
|
|