{"id":590,"date":"2016-09-20T19:17:03","date_gmt":"2016-09-20T11:17:03","guid":{"rendered":"http:\/\/39.100.100.179\/?p=590"},"modified":"2017-04-26T17:40:27","modified_gmt":"2017-04-26T09:40:27","slug":"actionform%e7%94%a8%e6%b3%95-%e5%9b%9e%e8%b0%83","status":"publish","type":"post","link":"http:\/\/www.u3d8.com\/?p=590","title":{"rendered":"ActionForm\u7528\u6cd5"},"content":{"rendered":"<p>\u53ef\u4ee5\u7528ActionForm\u6765\u6307\u5411\u4e00\u4e2a\u5e26\u53c2\u6570\u7684Action\u56de\u8c03\u4e8b\u4ef6\uff0c\u90a3\u4e48\u4e0b\u6b21\u5c31\u53ef\u4ee5\u76f4\u63a5\u7528ActionForm\u4ee3\u66ffAction\u4e86<\/p>\n<pre class=\"lang:c# decode:true \">using UnityEngine;\r\nusing System.Collections;\r\n\r\nusing ActionForm = System.Action&lt;string, int&gt;;\r\n\r\npublic class Test : MonoBehaviour {\r\n\r\n\t\/\/ Use this for initialization\r\n\tvoid Start () {\r\n\r\n        MyTestCallback(\"aaa\", 111, MyTest);     \/\/ \u8c03\u7528\r\n\t}\r\n\r\n    void MyTest(string _str, int _int)\r\n    {\r\n        Debug.Log(\"Test \" + _str + \" \" + _int);\r\n    }\r\n\r\n    void MyTestCallback(string _str, int _int, ActionForm _callback)\r\n    {\r\n        _callback(_str, _int);\r\n    }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\u7528ActionForm\u6765\u6307\u5411\u4e00\u4e2a\u5e26\u53c2\u6570\u7684Action\u56de\u8c03\u4e8b\u4ef6\uff0c\u90a3\u4e48\u4e0b\u6b21\u5c31\u53ef\u4ee5 &hellip; <a href=\"http:\/\/www.u3d8.com\/?p=590\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23],"tags":[],"_links":{"self":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/590"}],"collection":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=590"}],"version-history":[{"count":3,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/590\/revisions"}],"predecessor-version":[{"id":1157,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=\/wp\/v2\/posts\/590\/revisions\/1157"}],"wp:attachment":[{"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=590"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.u3d8.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}