void ManageCharacterData() { currentDistance = (Vector3.Distance(new Vector3(-10, 3, 0), transform.position)); gui.SetCharacterVariables(currentXP, nextLevelXP, currentLevel, currentDistance); if (attributesChanged) { gui.SetCharacterAttributes(currentStrength, currentAgility, currentDexterity, currentIntelligence, currentVitality, currentLuck); } }