activate script from trigger

hi,
i want to activate a script of my object on the trigger.

how i do it?

is possible with the ActivateTrigger script?

1 Answer

1

you can use Add component & adds the script to the object or via send message to run a script.

for adding component you simply use :
gameObject.AddComponent(scriptName);