Help a noob (563739)

Hi guys, I don’t know much about C# but I need a simple code to do what I’m going to explain below
I have 2 Cubebox one is a trigger and other one is which I would to enable!

So I need when passing through first Cubebox (which is a trigger) the second Cubebox will be enable!
Can someone help me please?
Thanks

You’re probably better off using playmaker if you have no programming ability, since you’ll just keep asking for scripts. Or learn C#.

1 Like

Yeah, but I just need to learn a basic knowledge of this

1 Like

Thanks I new where Learn is but can’t find my question on there.
It was a simple question I was hope somebody can answer this

Yeah I could write you that script, so could hippocoder.
But what we are trying to tell you is that you are much better off in the long run if you spend some time now figuring out how to do this yourself.

Some pointers on where to look:
OnTriggerEnter() : Unity - Scripting API: MonoBehaviour.OnTriggerEnter(Collider)
GameObject.SetActive : Unity - Scripting API: GameObject.SetActive

2 Likes

Thanks I know these two method, my problem is how can I do something the second cube get disable or enable
When I put GameObject.SetActive the first cube (Which is a trigger and contains script) will be disable not second cube

Use a game object variable and assign the second cube there and then use that variable instead of “GameObject”.

1 Like

Solved
Thank you