JSBinding + SharpKit / 实战:转换 Stealth

这个例子相对简单,基本上一路顺畅

 // JSBindingSettings.classes

public static Type[] classes = new Type[]
    {
        typeof(PerTest),
        typeof(PerTest.RefObject),

        typeof(Debug),
        typeof(Input),
        typeof(GameObject),
        typeof(Transform),
        typeof(Vector2),
        typeof(Vector3),
        typeof(MonoBehaviour),
        typeof(Behaviour),
        typeof(Component),
        typeof(UnityEngine.Object),
        typeof(YieldInstruction),
        typeof(WaitForSeconds),
        typeof(WWW),
        typeof(Application),
        typeof(UnityEngine.Time),
        typeof(Resources),
        typeof(TextAsset),
        
        typeof(IEnumerator),
        typeof(List<>),
        typeof(List<>.Enumerator),
        typeof(Dictionary<,>),
        typeof(Dictionary<,>.KeyCollection), 
        typeof(Dictionary<,>.ValueCollection), 
        typeof(Dictionary<,>.Enumerator), 
        typeof(KeyValuePair<,>), 
        
        typeof(System.Diagnostics.Stopwatch),
        typeof(UnityEngine.Random),
        typeof(StringBuilder),

        typeof(System.Xml.XmlNode),
        typeof(System.Xml.XmlDocument),
        typeof(System.Xml.XmlNodeList),
        typeof(System.Xml.XmlElement),
        typeof(System.Xml.XmlLinkedNode),
        typeof(System.Xml.XmlAttributeCollection),
        typeof(System.Xml.XmlNamedNodeMap),
        typeof(System.Xml.XmlAttribute),

        // for 2d platformer
        typeof(LayerMask),
        typeof(Physics2D),
        typeof(Rigidbody2D),
        typeof(Collision2D),
        typeof(RaycastHit2D),
        typeof(AudioClip),
        typeof(AudioSource),
        typeof(ParticleSystem),
        typeof(Renderer),
        typeof(ParticleSystemRenderer),
        typeof(DateTime),
        typeof(GUIElement),
        typeof(GUIText),
        typeof(GUITexture),
        typeof(SpriteRenderer),
        typeof(Animator),
        typeof(Camera),
        typeof(Mathf),
        typeof(Quaternion),
        typeof(Sprite),
        typeof(Collider2D),
        typeof(BoxCollider2D),
        typeof(CircleCollider2D),
        typeof(Material),
        typeof(Color),
        typeof(PolygonCollider2D),

        typeof(Light),
        typeof(NavMeshAgent),
        typeof(Rect),
        typeof(Physics),
        typeof(Collider),
        typeof(SphereCollider),
        typeof(LineRenderer),
        typeof(MeshCollider),
        typeof(MeshRenderer),
        typeof(Screen),
        typeof(RaycastHit),
        typeof(BoxCollider),
        typeof(CapsuleCollider),
        typeof(AnimatorStateInfo),
        typeof(Rigidbody),
        typeof(NavMeshPath),

    };
View Code

 

    public static string[] PathsNotToJavaScript = new string[]
    {
        "JSBinding/",
        // "Stealth/", // 去掉
        "DaikonForge Tween (Pro)/",
        "NGUI/",
    };

东西都拉到 Stealth 文件夹里

 

 

Replace!

 

FINISH

posted on 2015-07-30 10:09  AnswerWinner  阅读(365)  评论(0编辑  收藏  举报

导航