- Home /
How to do c# Action in UnityScript
I have found a similar question here. However I would like a better explanation to implement this myself.
I am using Prime31 Social Networking for Android in Javascript. I have the following Action in C# .. which I would like to convert and call using JS
void completionHandler( string error, object result ) {
if( error != null )
Debug.LogError( error );
else
Prime31.Utils.logObject( result );
}
I need to call the above Action like this: (in C#)
Facebook.instance.postMessage( "im posting this from Unity: " + Time.deltaTime, completionHandler );
How can I do this using JavaScript/UnityScript? Thank you.
Your answer
Follow this Question
Related Questions
javascript equivalent of Action? 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Pairing and GUITexture with a Timer? 1 Answer
How do i fix "Script does not exist" error when trying to add my script to something 3 Answers