I am try to update GUI during Update(). Here is the code:
void Update()
{
Debug.Log(HPText == null);
HPText.text = HP + " / " + MaxHP;
}
I have already set the HPText through Inspector.

And I get the following in the console. It seems that it keep alternating between null and not null. How can I get rid of the error?
