0
\$\begingroup\$

There are 3 boxes and 3 socket interactors. I only want the second socket interactor to work when there is a box in socket one and the third to work when there is a box in the first and the second sockets. But I do not understand how to do it.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ I've changed your question to ask about C#, since you probably don't want answers written in the UnityScript language that has not been supported by the engine for quite a few years now. Have you tried setting the socket interactor's enabled property to false when the condition is not met, and true when it is met, using events to update the condition when sockets have objects added/removed? \$\endgroup\$
    – DMGregory
    Commented Oct 9, 2023 at 0:38
  • \$\begingroup\$ I get what you are saying can you write an example in code? \$\endgroup\$
    – SPP
    Commented Oct 10, 2023 at 4:35

0

You must log in to answer this question.

Browse other questions tagged .