hi all i want convert var playerController : ThirdPersonController = GetComponent(ThirdPersonController); to c#. ThirdPersonController is js. how can i do that? thankful.
By doing a RTFM: http://unity3d.com/support/documentation/ScriptReference/GameObject.GetComponent.html
ThirdPersonController playerController=GetComponent<ThirdPersonController>();
If ThirdPersonController is .js, make sure it is located in the Plugins folder, otherwise the C# classes won't be able to find it.
PS: this has nothing to do with inheritance.
i make a folder in game and named it Plugins and move my js file but i cant access it via c#. how can i access js file in via c#? and how can i convert var playerController : ThirdPersonController = GetComponent(ThirdPersonController); to c#?