- Home /
Question by
rahulpatil6220375 · May 01, 2019 at 10:07 AM ·
gameobjectarrayrepeat
How Repeatedly Game Object store in array??How Identify??
i take a one prefab(paint)
and store in array but problem is there repeatedly prefab store??
when my player(cube) move forward then store the gameobject in array
when my player(cube) move backward then store the gameobject in array
how to detect player when back then already fillup object not store in array??
Referance:
public GameObject[] array;
int temp = 0;
array[temp] = Instantiate<GameObject>(paint, position,Quaternion.identity);
temp++;
if(temp==100)
{
GameOver();
}
moveforward.jpg
(115.3 kB)
Comment
Your answer
Follow this Question
Related Questions
Need help with C# code. both gameObject and col.gameObject are getting destroyed. here is the code. 2 Answers
Unload from memory - GameObject in an array? 1 Answer
Can't Activate a GameObject from Array 1 Answer
What is the best way to instatiate an array of connected GameObjects? 0 Answers
Transport unknown amout of objects with GameObject array 0 Answers