hi guys this is a snip let of my codes.
What i am trying to do here is that there is a order of the tag, 1 to 11. I want them to run from 1 to 11th order and if the object have been destroyed, run the next one… Do you guys have any idea what went wrong ?
if(Display)
{
hintstore = GameObject.FindWithTag(“1st”);
if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“2nd”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“3rd”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“4th”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“5th”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“6th”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“7th”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“8th”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“9th”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“10th”);
else if(hintstore != GameObject)
hintStore = GameObject.FindWithTag(“11th”);
}