So i want the float to always be taking the number from the UI text rather then a flat value. In my beginning code i have:
var player_hp : float = myText.text; << Error here
var hp_value_player : String ="";
var player_damage_range : boolean = false;
var myText : Text;
Is there a way to make the float value always take whatever number is from my UI text no matter what?
Thanks