标签:
This plugin is mainly desined to work with SharpKit.
You are expected to write C# and get JavaScript code with help of SharpKit.
If you don‘t like C# and would like to write JavaScrtipt only, Yes, you can do this, in version 1.5. But it will be a little inconvenient.
Examples
C#
GameObject go = new GameObject("Wall"); Debug.Log(go.active);
JavaScript
var go = new UnityEngine.GameObject.ctor$$String("Wall"); UnityEngine.Debug.Log$$Object(go.get_active());
See that? If you write JavaScript by hand:
I don‘t think you will like to write code like this.
..
Back to JSBinding + SharpKit / Home
JSBinding + SharpKit / To JavaScript-Only users
标签:
原文地址:http://www.cnblogs.com/answerwinner/p/4693748.html