// Start is called before the first frame update void Start() { Debug.Log("***API*** Start!"); _xmlHelper = XmlHelper.Instance(); _itemDatabase = ItemDatabase.Instance(); _userDatabase = UserDatabase.Instance(); _characterDatabase = CharacterDatabase.Instance(); _terrainDatabase = TerrainDatabase.Instance(); _gameLoadHelper = GameObject.Find("GameStarter").GetComponent <GameLoadHelper>(); //Call UserPlayer //_apiGate = "GetUserPlayer"; //_uri = String.Format(ApiPath + ApiStage + _apiGate + "?id={0}", DeviceHandler.FetchMacId()); //StartCoroutine(GetRequest(_uri, ReadUserPlayerJson)); ReadUserPlayerXml(DeviceHandler.FetchMacId()); }
public UserPlayer(string userName, string description) { Id = UnityEngine.Random.Range(0, 1999999999); UserName = userName; Description = description; SoundVolume = 0.1f; Latitude = 0; Longitude = 0; Gem = 5; LastLogin = ""; LockUntil = ""; LockMins = 0; PRank = 0; ClanId = 0; ClanRank = 0; FBLoggedIn = false; FBid = "Facebook"; Gid = "Google"; MacId = DeviceHandler.FetchMacId(); GLoggedIn = false; IsEnable = true; }
// Start is called before the first frame update void Start() { DeviceHandler.DisplayTypeAndAddress(); print(DeviceHandler.FetchMacId()); }