- Home /
inharitance javascript in csharp
hi all i want convert var playerController : ThirdPersonController = GetComponent(ThirdPersonController); to c#. ThirdPersonController is js. how can i do that? thankful.
Answer by Wolfram · Aug 07, 2010 at 03:38 PM
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.
Answer by rastinrastini · Aug 07, 2010 at 07:48 PM
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#?
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Problem Javascript to C# 3 Answers
Javascript equivalent of an inspector C# public List? 1 Answer
how do i make teams for a rts game 1 Answer