I am doing the new Realm Rush and Gary, uses
private void EnableObjectInPool()
{
for(int i = 0; i < pool.Length; i++)
{
if(!pool[i].activeInHierarchy)
{
pool[i].SetActive(true);
return;
}
}
}
For my solution i used isSelfActive instead of activeInHierarchy. It seems to work in the same way, but was wondering is there a reason why I should use ActiveInHierarchy over isSelfActive ? Or is it just horses for courses? I checked on Stack Overflow and just got more confused
So if anyone could help me out, it would be much appreciated