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); }