Instantiate shapes

I am making a 3D game in which player move on the Z axis and have to collide with a similar shape. 03 shapes are spawning out of 05 shapes. Player shapes also changes after sometime. instantiate shapes have 01 same shape similar to player but sometime randomly when player shape changed, already instantiate shapes does not have it. But in next instantiate it have same shape as of player.

How can I achieve this functionality that already instantiate shape also changes according to player shape? Anyone knows kindly guide me.

Hello.

Dont pretend to be offensive, but this is a developers forum. You need to talk specific and use correct words. What shape means for you? “Shape” is not a Unity compoennt. Shapes means different meshes? different gameobjects? different what? You need t instantiate different objects? Then dont talk about shapes.

When you try to write some new script. If you dont know how to achieve it, first write a simple text with your own words with all the “sentences” you think you need to do.

Then replace all sentences you know how to achieve it, and google for the ones you dont know.

So, i recommend you to, think what you need to do, step by step and come here to Unity Answersa to ask for a specific function or order you dont know how to do it.

Tip: You just need to know what object want to instantiate every moment, so need to read the info somewhere, and execute accordly to that info.

FAQ :

What are the guidelines for writing good questions?

We want Unity Answers to become a comprehensive database of questions and answers related to Unity. When you ask your questions, it can be helpful to keep a few things in mind:

Don’t write things that will be irrelevant in a few days. Writing that “This is urgent!” will probably not get you faster answers, but it may make people frown at your question.

Some reasons for getting a post rejected:

There exists duplicate questions with answers if you were to do a search, either on Answers or on the Forum or on Unity's tutorials

Your question isn't specific enough: asking for a script, asking multiple questions in one post or asking a question that could be either subjective or require extensive discussion