variables - How to make GUI Button activate script (JS or C#) in Unity3d -
I really need help in making your GUI. Button launches a JS script (or C #) associated with a game object. Here's what I have in my application: "Public Vari doRotation = false" by the JS script "Dorotat.Jes", which rotates on Game Object #pragma in strict public var doRotation = false " True ", then the rotation begins; Function Updates () {if (doRotation) {transform.Rotate (new vector 3 (0, 50, 0) * Time.deltaTime); }} I have a JS script that renders some GUI.buttons I press 2 button once, to call the "doRotate.js" script whose The meaning is reaching boolean "depression" and its opportunity for "true", as it is inspector I am trying to do this by now, but I get this error "Error BCEE 00020: An example of type 'dotat' to reach non-static member 'two quotations (BCEX 2020) Here is the code on GUI.button: var has the original_method: Float = 480; Var has the original_heat: float = 320; Var ...