Question by
drod698 · Jan 29, 2017 at 11:20 PM ·
c#inputprogramminginputfield
I need help with input field ui.
Im trying to have it where the user types in how much health they want in a settings scene then when they go to the actual game scene the hp value will be set to whatever they type in. I already have the scenes set up i just need help setting up the input field. This is the script I have for the hp value:
public class Fighter : MonoBehaviour{
public int HP;
public int GetHP(){
return HP;
}
public void TakeDamage(int Roll){
HP -= Roll;
}
}
Comment