Example #1
0
 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);
 }
Example #2
0
 private void OnTakeCakeResponse(int cakeCount, DateTime lastTime)
 {
     IANTGame.Player.GainCake(cakeCount, lastTime);
     playerInfoController.UpdatePlayerInfo(IANTGame.Player);
 }