Hi im trying to find out if in this case, if “death” is active… i am getting an error that is is obsolete… what do i do?
if(death.active)
{
scoreObject.GetComponent().AddScore();
Destroy(gameObject);
}
Hi im trying to find out if in this case, if “death” is active… i am getting an error that is is obsolete… what do i do?
if(death.active)
{
scoreObject.GetComponent().AddScore();
Destroy(gameObject);
}
Use activeInHierarchy.