I’m attempting to update an NGUI UILabel with my playerHeath.
The health script is written in java and so I was trying to reference my c# script that updates the health on the user-interface.
function OnCollisionEnter (myCollision : Collision)
{
if (myCollision.gameObject.tag == "enemy")
{
ApplyDamage(10);
var healthUpdate: HealthUpdate = GetComponent(HealthUpdate);
healthUpdate.Start();
}
}
I’m receiving The name ‘HealthUpdate’ does not denote a valid type (‘not found’).