D
D
Deman12020-02-14 00:15:51
C++ / C#
Deman1, 2020-02-14 00:15:51

How to make script interaction?

Hello, I want to ask if it is possible to implement this at all, and how to do it.
In general, I have a prefab that I create with a script on the prefab, there is a script, I want to partially control the prefab that I create through the script that I create, for example, I have 3 publics on the spawner of the prefab, they have height and width speed values, in the spawner there are also such publics and for example, I specify some different values ​​​​and they are accepted into the prefab script.

If this is real, please give an example of the code, I'll figure it out myself

There are a couple of doubts about this system, I'm going to create this prefab in update constantly and the values ​​\u200b\u200bthat will be in the spawner will not be constant, that is, according to the idea, the script will be updated but only on the values, will other already created objects be affected by the change before creation?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question