|
I need to translate an object form A to B. I found this http://www.unifycommunity.com/wiki/index.php?title=MoveObject and it work fine but i need to convert it in C#. If I understand the MoveObject.js can remain in js but I can't convert the example to C# The example is it: } I read in C# I must write StartCoroutine, but I can't do it. Can any help me? Thanks
(comments are locked)
|
StartCoroutine(method) --- Creates a coroutine that runs side by side this one
I use this code but i take a lot of errors because the script can't find the MoveObject. I did this "Put this script in your Standard Assets/Scripts folder; this way it can be easily used from C# or Boo. The script should be named "MoveObject". The script must be attached to some object in the scene, such as an empty object used for game manager scripts" and i created a new c sharp script and I use the your answer but it don't run. But if i use the js script it work. I used: using UnityEngine; using System.Collections; public class Person1Move : MonoBehaviour {
And I take the error "The name `MoveObject' does not exist in the current context" Can this error appear beacuse the us script is in c# and the MoveObject is in JS? mmmm I need help! I think now the question is: How can I create a C# script that can communicate with another js script? (because the MoveObject is in JS.
Sep 05 '11 at 10:31 PM
AASonyKK
SOLVED!!! The C# script for see the MoveObject js script, I had to put the js script in the "Standard Assets" and not in "Standard Assets-->Scripts" Thanks for the help!!!
Sep 06 '11 at 12:36 PM
AASonyKK
(comments are locked)
|
