Question by
obiolg · Dec 25, 2015 at 10:14 AM ·
scripting problemgameobject
Script uses GameObject created in other Script
I have 2 scripts: FooGameObject
and UseFoo
.
FooGameObject
generates a GameObject
using Awake()
function. I would like UseFoo
to use generated GameObject
inside Start()
. Tell me please, how can one achieve this?
So, to be crystal clear: I would like to have 2 scripts. The first one creates a GameObject (for example a star) and then the other script should use generated object in its code. How does one use generated object in the 2nd script?
Comment