Thank You in advance!
I have a grid of instantiated gameobject’s and have tagged them as master,
I created an array from this 7x7 grid and created a list from those.
I am attempting to get the transform.positions from this list and shuffle the list and then replace the grid with the shuffled transform.positions.
IEnumerator shuffleGrid(){
GameObject[] gms = GameObject.FindGameObjectsWithTag ("Master");
List<GameObject> transformsLoc = new List<GameObject>();
transformsLoc.AddRange(gms);
foreach (GameObject gm in transformsLoc)
{
Vector3 temp = gm.transform.localPosition; //this gets the list of all transform.positions - just no idea how to randomize the list of these
print(temp);
}
}
yield return null;
}
I have tried many diff things from an extensive google and unity3d search but cant seem to find any good ideas.
Thank You again for any assistance
AS