Enable c# script from Unityscript

Hi everyone,
I´m wondering if exist some way to enable a c# script from Unityscript script. Both scripts are in the same GameObject. I tried using the way for the components in the GameObject, but it didn´t work:
namegameobject.getComponent(c#ScriptName).enabled= true;

Thank´s a lot in advance!!

Create a “Plugins” folder and drag your C# script there.

You should be able to reference it now.

Thank you for your answer
I moved the c# scritpt and the rest of scripts that it need to the Plugins folder, but still appear the same error using:
namegameobject.getComponent(c#ScriptName).enabled= true;
Error
Unknown identifier: “c#ScriptName”

I don´t know if there is any other step that I did not make it…

Many thanks!!

Make sure it’s in the same namespace and that the class name and file name match. If it’s not in the same namespace, then either qualify the class name with the namespace name “someNamespace.someClass” or include the whole namespace in your script at the top like you do for “using UnityEngine;”.

So Script A and Script B are both on the same object? if so gameObject.GetComponent(ScriptBName).enabled = true; should be working.

You could also try
gameObject.(GetComponent(ScriptBName)as ScriptBName).enabled =true;

Thank you for the answers. Now I have this issue much more clear