- Home /
This question was
closed Oct 15, 2012 at 07:15 AM by
Fattie for the following reason:
Problem is not reproducible or outdated
Question by
bubblegumsoldier · Jun 24, 2012 at 06:09 PM ·
variablemonobehaviour
accessing vars of other script doesn't work
Hi guys...
Is it possible to access vars of another script? Yes it is, but one script is js the other script is c#. And it doesn't work. Not even broadcastMessage works.
First try
var MainScript :main_level;
Second try
var MainScipt :GameObject;
MainScript.BroadcastMessage("Set");
has no receiver...!!! the void of the c# script is: void Set(float abstandy){ AbstandY = 100; }
Comment
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Simple enemy kill count 1 Answer
Unity3d Javascript Reference Script Variable 1 Answer
Get variable from Script in list and , set direct link to other script 1 Answer
Multiple objects sharing a boolean variable in a script. 1 Answer