Hii i want to get a random value of pos from the three vectors as shown below, Please help me on this
//Vector3 pos = randomly select from pos1 or pos2 or pos 3
//clone = Instantiate(enemy, -1.55, 0.65, -8, transform.rotation) as GameObject;
Vector3 pos1 = new Vector3(1f,2f,1f);
Vector3 pos2 = new Vector3(3f,6f,9f);
Vector3 pos3 = new Vector3(0f,0f,5f);
//Vector3 pos = randomly select from pos1 or pos2 or pos 3
clone = Instantiate(enemy, pos, transform.rotation) as GameObject;
print("hello i entered the trigger");