Ejemplo n.º 1
0
 public void Init()
 {
     unitCurrentHealthPoints = Mathf.Clamp(statsData.healthPoints, 0, statsData.healthPoints);
     unitUI.SetUIPoints(unitUI.healthUIGO, unitCurrentHealthPoints);
     unitMovementPoints = statsData.movementPoints;
     unitUI.SetUIPoints(unitUI.movementUIGO, unitMovementPoints);
     unitAttackPoints = statsData.attackPoints;
     unitUI.SetUIPoints(unitUI.attackUIGO, unitAttackPoints);
 }