{"action":"closed","issue":{"url":"https://api.github.com/repos/pangweiwei/slua/issues/231","repository_url":"https://api.github.com/repos/pangweiwei/slua","labels_url":"https://api.github.com/repos/pangweiwei/slua/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/pangweiwei/slua/issues/231/comments","events_url":"https://api.github.com/repos/pangweiwei/slua/issues/231/events","html_url":"https://github.com/pangweiwei/slua/issues/231","id":316755448,"number":231,"title":"luaTypeCheck问题","user":{"login":"qiankanglai","id":1546130,"avatar_url":"https://avatars2.githubusercontent.com/u/1546130?v=4","gravatar_id":"","url":"https://api.github.com/users/qiankanglai","html_url":"https://github.com/qiankanglai","followers_url":"https://api.github.com/users/qiankanglai/followers","following_url":"https://api.github.com/users/qiankanglai/following{/other_user}","gists_url":"https://api.github.com/users/qiankanglai/gists{/gist_id}","starred_url":"https://api.github.com/users/qiankanglai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiankanglai/subscriptions","organizations_url":"https://api.github.com/users/qiankanglai/orgs","repos_url":"https://api.github.com/users/qiankanglai/repos","events_url":"https://api.github.com/users/qiankanglai/events{/privacy}","received_events_url":"https://api.github.com/users/qiankanglai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-23T10:38:22Z","updated_at":"2018-04-27T02:38:36Z","closed_at":"2018-04-27T02:38:36Z","author_association":"CONTRIBUTOR","body":"https://github.com/pangweiwei/slua/blob/master/Assets/Plugins/Slua_Managed/LuaObject.cs#L704\r\n\r\n在使用DOTween的时候 transform:DOScale(1.0, 1.0)没问题，但transform:DOScale(Vector3(1,1,1), 1.0)会报错。\r\n\r\n原因是检查matchType的时候DOScale(Vector3, float)会满足第一个if导致进错重载函数了...\r\n\r\n\t\t\tif(matchType(l,argc,2,typeof(float),typeof(float))){\r\n\t\t\t\tUnityEngine.Transform self=(UnityEngine.Transform)checkSelf(l);\r\n\t\t\t\tSystem.Single a2;\r\n\t\t\t\tcheckType(l,2,out a2);\r\n\t\t\t\tSystem.Single a3;\r\n\t\t\t\tcheckType(l,3,out a3);\r\n\t\t\t\tvar ret=self.DOScale(a2,a3);\r\n\t\t\t\tpushValue(l,true);\r\n\t\t\t\tpushValue(l,ret);\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\t\t\telse if(matchType(l,argc,2,typeof(UnityEngine.Vector3),typeof(float))){\r\n\t\t\t\tUnityEngine.Transform self=(UnityEngine.Transform)checkSelf(l);\r\n\t\t\t\tUnityEngine.Vector3 a2;\r\n\t\t\t\tcheckType(l,2,out a2);\r\n\t\t\t\tSystem.Single a3;\r\n\t\t\t\tcheckType(l,3,out a3);\r\n\t\t\t\tvar ret=self.DOScale(a2,a3);\r\n\t\t\t\tpushValue(l,true);\r\n\t\t\t\tpushValue(l,ret);\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\r\n我把注释里的luaTypeCheck打开 看起来没问题了，查了下历史提交是optimize code 不知道有没有其他影响"}}
{"actor":{"display_login":"pangweiwei"}}