if(GameObject.Find = ("OilFarm(Clone)") <IT IS IN THE ARRAY> currentlySelected)
{
}
Can any1 help me fill in the <> area on this statement or isit not possible?
Btw currentlySelected is an array list in a different script cast as gameobjects
if(GameObject.Find = ("OilFarm(Clone)") <IT IS IN THE ARRAY> currentlySelected)
{
}
Can any1 help me fill in the <> area on this statement or isit not possible?
Btw currentlySelected is an array list in a different script cast as gameobjects
List.IndexOf(T)
Dam i have no idea how tto use that command
managed t0 get round the problem by checking if something on the selected object was active
Or List.Contains(T t)