Ejemplo n.º 1
0
 public void IncreaseHeat(float heat, Fire fire)
 {
     if (this.heat < heatMax)
     {
         this.heat += heat;
     }
     else
     {
         if (!IsBurning)
         {
             this.fire = fire.AddSpot(treeTop.position);
             IsBurning = true;
         }
     }
 }