void Start() { IANTGame.Player = new Player(1, new PlayerProperties { level = 1, exp = 5, foodInfos = new List <FoodInfo>(), nests = new List <Nest>() }); playerInfoController.UpdatePlayerInfo(IANTGame.Player); }
private void OnTakeCakeResponse(int cakeCount, DateTime lastTime) { IANTGame.Player.GainCake(cakeCount, lastTime); playerInfoController.UpdatePlayerInfo(IANTGame.Player); }