{"id":2208,"date":"2025-05-13T18:00:17","date_gmt":"2025-05-13T10:00:17","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/"},"modified":"2025-05-13T18:00:17","modified_gmt":"2025-05-13T10:00:17","slug":"unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/","title":{"rendered":"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"htmledit_views atom-one-dark\" id=\"content_views\">\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002<br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u6559\u7a0b\u6765\u81ea\uff1a<br \/>\n   <\/span><br \/>\n   <a href=\"http:\/\/pixelnest.io\/tutorials\/2d-game-unity\/\" rel=\"nofollow noopener noreferrer\" style=\"font-size:10.5pt; line-height:1.5\" target=\"_blank\"><br \/>\n    http:\/\/pixelnest.io\/tutorials\/2d-game-unity\/<br \/>\n   <\/a><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u4e2d\u6587\u7248\u6559\u7a0b\uff1a<br \/>\n   <\/span><br \/>\n   <a href=\"http:\/\/www.litpo.com\/category\/%E6%98%93%E5%AD%A6%E7%9A%84%E6%95%99%E7%A8%8B\/\" rel=\"nofollow noopener noreferrer\" style=\"font-size:10.5pt; line-height:1.5\" target=\"_blank\"><br \/>\n    http:\/\/www.litpo.com\/category\/\u6613\u5b66\u7684\u6559\u7a0b\/<br \/>\n   <\/a>\n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u6559\u7a0b\u6587\u7ae0\u5df2\u7ecf\u8be6\u7ec6\u5730\u4ecb\u7ecd\u5b9e\u73b0\u8fc7\u7a0b\uff0c\u8fd9\u91cc\u5c31\u4e0d\u518d\u590d\u8ff0\uff0c\u53ea\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u7b14\u8bb0\u8bb0\u5f55\uff0c\u4ee5\u4f9b\u5907\u5fd8\u3002\n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \n  <\/div>\n<h3 style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   <strong><br \/>\n    1.\u521b\u5efa\u7b2c\u4e00\u4e2a\u573a\u666f<br \/>\n   <\/strong><br \/>\n  <\/h3>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u65b0\u5efa\u5de5\u7a0b\u3002\u63a5\u7740\u5728&#8221;<br \/>\n   <strong><br \/>\n    <span style=\"color:#ff00ff\"><br \/>\n     Project<br \/>\n    <\/span><br \/>\n   <\/strong><br \/>\n   &#8220;\u9762\u677f\u4e0a\u521b\u5efa\u5982\u4e0b\u6587\u4ef6\u5939\uff1a<br \/>\n   \n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u6b64\u65f6\uff0c\u70b9\u51fb&#8221;<br \/>\n   <strong><br \/>\n    <span style=\"color:#ff00ff\"><br \/>\n     Scene<br \/>\n    <\/span><br \/>\n   <\/strong><br \/>\n   &#8220;\u9762\u677f\u4e0a\u76842D\u52303D\u89c6\u56fe\u5207\u6362\uff0c\u53ef\u4ee5\u6e05\u695a\u770b\u5230\u5c42\u6b21\uff1a<br \/>\n   \n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n<h3>\n    <strong><br \/>\n     3.\u521b\u5efa\u4e3b\u89d2\u548c\u654c\u4eba<br \/>\n    <\/strong><br \/>\n   <\/h3>\n<\/p><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u5bfc\u5165\u4e3b\u89d2\u56fe\u7247<br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u5230<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    &#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      Textures<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u6587\u4ef6\u5939\uff0c\u521b\u5efa\u4e00\u4e2aSprite\u6e38\u620f\u5bf9\u8c61\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n    <strong><br \/>\n     <span style=\"color:#ff6820\"><br \/>\n      Player<br \/>\n     <\/span><br \/>\n    <\/strong><br \/>\n    &#8220;\uff0c<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u8bbe\u7f6e\u5176&#8221;<br \/>\n    <strong><br \/>\n     <span style=\"color:#009300\"><br \/>\n      Sprite<br \/>\n     <\/span><br \/>\n    <\/strong><br \/>\n    &#8220;\u5c5e\u6027\u4e3a\u521a\u624d\u5bfc\u5165\u7684\u4e3b\u89d2\u56fe\u7247\u3002\u5c06\u6b64\u5bf9\u8c61\u653e\u5165&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      2 &#8211; Foreground<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c42\u91cc\uff0c\u8bbe\u7f6e\u5176<br \/>\n    <span style=\"color:#009300\"><br \/>\n     <strong><br \/>\n      Scale<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    \u4e3a<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    (0.2, 0.2, 1)\u3002\u63a5\u7740\uff0c\u4e3a\u4e3b\u89d2\u6dfb\u52a0\u76d2\u78b0\u649e\u4f53\u7ec4\u4ef6\uff0c\u70b9\u51fb&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <strong><br \/>\n     <span style=\"color:#009300\"><br \/>\n      Add Component<br \/>\n     <\/span><br \/>\n    <\/strong><br \/>\n    &#8220;\u6309\u94ae\uff0c\u9009\u62e9&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <strong><br \/>\n     <span style=\"color:#009300\"><br \/>\n      Box Collider 2D<br \/>\n     <\/span><br \/>\n    <\/strong><br \/>\n    &#8220;\uff0c\u8bbe\u7f6e\u5176<br \/>\n    <span style=\"color:#009300\"><br \/>\n     <strong><br \/>\n      Size<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    \u4e3a<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    (10, 10)\uff0c\u867d\u7136\u8fd9\u8fd8\u662f\u5927\u4e8e\u5b9e\u9645\u7684\u533a\u57df\uff0c\u4f46\u5df2\u6bd4\u56fe\u7247\u5c0f\u591a\u4e86\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<br \/>\n    <br \/>\n   <\/span>\n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \uff08\u53ef\u4ee5\u901a\u8fc7\u6309\u4f4fShift\u952e\uff0c\u6765\u8c03\u6574\u7eff\u8272\u78b0\u649e\u8303\u56f4\uff09\n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u63a5\u7740\uff0c\u518d\u4e3a\u4e3b\u89d2\u5bf9\u8c61\u6dfb\u52a0&#8221;<br \/>\n   <strong><br \/>\n    <span style=\"color:#009300\"><br \/>\n     Rigidbody 2D<br \/>\n    <\/span><br \/>\n   <\/strong><br \/>\n   &#8220;\u521a\u4f53\u7ec4\u4ef6\uff0c\u73b0\u5728\u8fd0\u884c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<br \/>\n   \n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u5bfc\u5165\u5b50\u5f39\u56fe\u7247<br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u5230<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    &#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      Textures<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u6587\u4ef6\u5939\uff0c\u521b\u5efa\u4e00\u4e2aSprite\u6e38\u620f\u5bf9\u8c61\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n   <\/span><br \/>\n   <strong><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     PlayerShot<br \/>\n    <\/span><br \/>\n   <\/strong><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    &#8220;\uff0c<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u8bbe\u7f6e\u5176&#8221;<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Sprite<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027\u4e3a\u521a\u624d\u5bfc\u5165\u7684\u56fe\u7247<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \uff0c\u8bbe\u7f6e&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Scale<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027\u4e3a<br \/>\n   <\/span><br \/>\n   (0.75, 0.75, 1)<br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \uff0c\u6dfb\u52a0&#8221;<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Rigidbody 2D<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u7ec4\u4ef6\uff0c\u5176&#8221;<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Gravity Scale<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027\u4e3a0\uff0c\u5e76\u4e14\u52fe\u9009&#8221;<br \/>\n    <strong><br \/>\n     <span style=\"color:#3cb371\"><br \/>\n      Fixed Angles<br \/>\n     <\/span><br \/>\n    <\/strong><br \/>\n    &#8220;\u5c5e\u6027\u6846<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \uff0c\u6dfb\u52a0&#8221;<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Box Collider 2D<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u7ec4\u4ef6\uff0c\u5176<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Size<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    \u4e3a(1, 1)\uff0c\u5e76\u4e14\u52fe\u9009&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      IsTrigger<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u3002\u52fe\u9009&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      IsTrigger<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027\u8868\u793a\u8be5\u78b0\u649e\u4f53\u7528\u4e8e\u89e6\u53d1\u4e8b\u4ef6\uff0c\u5e76\u5c06\u88ab\u7269\u7406\u5f15\u64ce\u6240\u5ffd\u7565\u3002\u610f\u5473\u7740\uff0c\u5b50\u5f39\u5c06\u7a7f\u8fc7\u89e6\u78b0\u5230\u7684\u5bf9\u8c61\uff0c\u800c\u4e0d\u4f1a\u963b\u788d\u5bf9\u8c61\u7684\u79fb\u52a8\uff0c\u89e6\u78b0\u7684\u65f6\u5019\u5c06\u4f1a\u5f15\u53d1&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      OnTriggerEnter2D<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u4e8b\u4ef6\u3002\u521b\u5efa\u4e00\u4e2a\u811a\u672c\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      ShotScript<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<br \/>\n   <\/span>\n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px; width:100%; border:1px solid rgb(227,227,227)\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); width:100%; font-family:Consolas,'Courier New'; font-size:12px; vertical-align:text-top; line-height:15px\">\n<tbody>\n<tr>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); color:rgb(0,130,132); background-color:rgb(227,227,227); vertical-align:text-top\">\n<div style=\"margin:7px; text-align:right; white-space:nowrap\">\n        1<br \/>\n        <br \/>\n        2<br \/>\n        <br \/>\n        3<br \/>\n        <br \/>\n        4<br \/>\n        <br \/>\n        5<br \/>\n        <br \/>\n        6<br \/>\n        <br \/>\n        7<br \/>\n        <br \/>\n        8<br \/>\n        <br \/>\n        9<br \/>\n        <br \/>\n        10<br \/>\n        <br \/>\n        11<br \/>\n        <br \/>\n        12<br \/>\n        <br \/>\n        13<br \/>\n        <br \/>\n        14<br \/>\n        <br \/>\n        15<br \/>\n        <br \/>\n        16<br \/>\n        <br \/>\n        17<br \/>\n        <br \/>\n        18<br \/>\n        <br \/>\n        19<br \/>\n        <br \/>\n        20<br \/>\n        <br \/>\n        21<br \/>\n        <br \/>\n        22<br \/>\n        <br \/>\n        23<br \/>\n        <br \/>\n        24<br \/>\n        <br \/>\n        25<br \/>\n        \n       <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(0,130,132); padding:1px\">\n<div style=\"border:1px solid rgb(0,130,132)\">\n       <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(239,239,239); width:1242px; vertical-align:text-top\">\n<div style=\"margin:7px\">\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         using<br \/>\n        <\/span><br \/>\n        UnityEngine;<\/p>\n<p>        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n         \/\/\/\u00a0Projectile\u00a0behavior<br \/>\n         <br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         class<br \/>\n        <\/span><br \/>\n        ShotScript\u00a0:\u00a0MonoBehaviour<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a01\u00a0&#8211;\u00a0Designer\u00a0variables<br \/>\n         <br \/>\n        <\/span><br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0Damage\u00a0inflicted<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         int<br \/>\n        <\/span><br \/>\n        damage\u00a0=<br \/>\n        <span style=\"color:rgb(255,0,0)\"><br \/>\n         1<br \/>\n        <\/span><br \/>\n        ;<\/p>\n<p>        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0Projectile\u00a0damage\u00a0player\u00a0or\u00a0enemies?<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         bool<br \/>\n        <\/span><br \/>\n        isEnemyShot\u00a0=<br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         false<br \/>\n        <\/span><br \/>\n        ;<\/p>\n<p>        <span style=\"color:rgb(128,0,255)\"><br \/>\n         void<br \/>\n        <\/span><br \/>\n        Start()<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a02\u00a0&#8211;\u00a0Limited\u00a0time\u00a0to\u00a0live\u00a0to\u00a0avoid\u00a0any\u00a0leak<br \/>\n         <br \/>\n        <\/span><br \/>\n        Destroy(gameObject,<br \/>\n        <span style=\"color:rgb(255,0,0)\"><br \/>\n         20<br \/>\n        <\/span><br \/>\n        );<br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a020sec<br \/>\n         <br \/>\n        <\/span><br \/>\n        }<br \/>\n        <br \/>\n        }\n       <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u5c06\u6b64\u811a\u672c\u9644\u52a0\u5230\u5b50\u5f39\u5bf9\u8c61\u4e0a\uff0c\u7136\u540e\u5c06&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     MoveScript<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u811a\u672c\u4e5f\u9644\u52a0\u5230\u5b50\u5f39\u5bf9\u8c61\u4e0a\u4ee5\u4fbf\u53ef\u4ee5\u79fb\u52a8\u3002\u4fdd\u5b58\u6b64\u5bf9\u8c61\u4e3a\u9884\u5236\u3002\u63a5\u7740\uff0c\u8ba9\u78b0\u649e\u4ea7\u751f\u4f24\u5bb3\u6548\u679c\u3002\u521b\u5efa\u4e00\u4e2a\u811a\u672c\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     HealthScript<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a\n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px; width:100%; border:1px solid rgb(227,227,227)\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); width:100%; font-family:Consolas,'Courier New'; font-size:12px; vertical-align:text-top; line-height:15px\">\n<tbody>\n<tr>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); color:rgb(0,130,132); background-color:rgb(227,227,227); vertical-align:text-top\">\n<div style=\"margin:7px; text-align:right; white-space:nowrap\">\n        1<br \/>\n        <br \/>\n        2<br \/>\n        <br \/>\n        3<br \/>\n        <br \/>\n        4<br \/>\n        <br \/>\n        5<br \/>\n        <br \/>\n        6<br \/>\n        <br \/>\n        7<br \/>\n        <br \/>\n        8<br \/>\n        <br \/>\n        9<br \/>\n        <br \/>\n        10<br \/>\n        <br \/>\n        11<br \/>\n        <br \/>\n        12<br \/>\n        <br \/>\n        13<br \/>\n        <br \/>\n        14<br \/>\n        <br \/>\n        15<br \/>\n        <br \/>\n        16<br \/>\n        <br \/>\n        17<br \/>\n        <br \/>\n        18<br \/>\n        <br \/>\n        19<br \/>\n        <br \/>\n        20<br \/>\n        <br \/>\n        21<br \/>\n        <br \/>\n        22<br \/>\n        <br \/>\n        23<br \/>\n        <br \/>\n        24<br \/>\n        <br \/>\n        25<br \/>\n        <br \/>\n        26<br \/>\n        <br \/>\n        27<br \/>\n        <br \/>\n        28<br \/>\n        <br \/>\n        29<br \/>\n        <br \/>\n        30<br \/>\n        <br \/>\n        31<br \/>\n        <br \/>\n        32<br \/>\n        <br \/>\n        33<br \/>\n        <br \/>\n        34<br \/>\n        <br \/>\n        35<br \/>\n        <br \/>\n        36<br \/>\n        <br \/>\n        37<br \/>\n        <br \/>\n        38<br \/>\n        <br \/>\n        39<br \/>\n        <br \/>\n        40<br \/>\n        <br \/>\n        41<br \/>\n        <br \/>\n        42<br \/>\n        <br \/>\n        43<br \/>\n        <br \/>\n        44<br \/>\n        <br \/>\n        45<br \/>\n        <br \/>\n        46<br \/>\n        <br \/>\n        47<br \/>\n        <br \/>\n        48<br \/>\n        <br \/>\n        49<br \/>\n        \n       <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(0,130,132); padding:1px\">\n<div style=\"border:1px solid rgb(0,130,132)\">\n       <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(239,239,239); width:1242px; vertical-align:text-top\">\n<div style=\"margin:7px\">\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         using<br \/>\n        <\/span><br \/>\n        UnityEngine;<\/p>\n<p>        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n         \/\/\/\u00a0Handle\u00a0hitpoints\u00a0and\u00a0damages<br \/>\n         <br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         class<br \/>\n        <\/span><br \/>\n        HealthScript\u00a0:\u00a0MonoBehaviour<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0Total\u00a0hitpoints<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         int<br \/>\n        <\/span><br \/>\n        hp\u00a0=<br \/>\n        <span style=\"color:rgb(255,0,0)\"><br \/>\n         1<br \/>\n        <\/span><br \/>\n        ;<\/p>\n<p>        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0Enemy\u00a0or\u00a0player?<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         bool<br \/>\n        <\/span><br \/>\n        isEnemy\u00a0=<br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         true<br \/>\n        <\/span><br \/>\n        ;<\/p>\n<p>        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0Inflicts\u00a0damage\u00a0and\u00a0check\u00a0if\u00a0the\u00a0object\u00a0should\u00a0be\u00a0destroyed<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;param\u00a0name=&#8221;damageCount&#8221;&gt;&lt;\/param&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         void<br \/>\n        <\/span><br \/>\n        Damage(<br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         int<br \/>\n        <\/span><br \/>\n        damageCount)<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        hp\u00a0-=\u00a0damageCount;<\/p>\n<p>        <span style=\"color:rgb(0,0,255)\"><br \/>\n         if<br \/>\n        <\/span><br \/>\n        (hp\u00a0&lt;=<br \/>\n        <span style=\"color:rgb(255,0,0)\"><br \/>\n         0<br \/>\n        <\/span><br \/>\n        )<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a0Dead!<br \/>\n         <br \/>\n        <\/span><br \/>\n        Destroy(gameObject);<br \/>\n        <br \/>\n        }<br \/>\n        <br \/>\n        }<\/p>\n<p>        <span style=\"color:rgb(128,0,255)\"><br \/>\n         void<br \/>\n        <\/span><br \/>\n        OnTriggerEnter2D(Collider2D\u00a0otherCollider)<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a0Is\u00a0this\u00a0a\u00a0shot?<br \/>\n         <br \/>\n        <\/span><br \/>\n        ShotScript\u00a0shot\u00a0=\u00a0otherCollider.gameObject.GetComponent&lt;ShotScript&gt;();<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         if<br \/>\n        <\/span><br \/>\n        (shot\u00a0!=<br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         null<br \/>\n        <\/span><br \/>\n        )<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a0Avoid\u00a0friendly\u00a0fire<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         if<br \/>\n        <\/span><br \/>\n        (shot.isEnemyShot\u00a0!=\u00a0isEnemy)<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        Damage(shot.damage);<\/p>\n<p>        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a0Destroy\u00a0the\u00a0shot<br \/>\n         <br \/>\n        <\/span><br \/>\n        Destroy(shot.gameObject);<br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a0Remember\u00a0to\u00a0always\u00a0target\u00a0the\u00a0game\u00a0object,\u00a0otherwise\u00a0you\u00a0will\u00a0just\u00a0remove\u00a0the\u00a0script<br \/>\n         <br \/>\n        <\/span><br \/>\n        }<br \/>\n        <br \/>\n        }<br \/>\n        <br \/>\n        }<br \/>\n        <br \/>\n        }\n       <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u5c06\u6b64\u811a\u672c\u9644\u52a0\u5230<br \/>\n   <strong><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     Poulpi<br \/>\n    <\/span><br \/>\n   <\/strong><br \/>\n   \u9884\u5236\u4f53\u4e0a\u3002\u73b0\u5728\u8fd0\u884c\uff0c\u8ba9\u5b50\u5f39\u548c\u7ae0\u9c7c\u78b0\u649e\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<\/p>\n<p>\n   \u5982\u679c\u7ae0\u9c7c\u7684\u751f\u547d\u503c\u5927\u4e8e\u5b50\u5f39\u7684\u4f24\u5bb3\u503c\uff0c\u90a3\u4e48\u7ae0\u9c7c\u5c31\u4e0d\u4f1a\u88ab\u6d88\u706d\uff0c\u53ef\u4ee5\u8bd5\u7740\u901a\u8fc7\u6539\u53d8\u7ae0\u9c7c\u5bf9\u8c61\u7684&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     HealthScript<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u7684hp\u503c\u3002\u63a5\u7740\uff0c\u51c6\u5907\u53ef\u4ee5\u5c04\u51fb\u3002\u521b\u5efa\u4e00\u4e2a\u811a\u672c\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponScript<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<div style=\"width:100%; border:1px solid rgb(227,227,227)\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); width:100%; font-family:Consolas,'Courier New'; font-size:12px; vertical-align:text-top; line-height:15px\">\n<tbody>\n<tr>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); color:rgb(0,130,132); background-color:rgb(227,227,227); vertical-align:text-top\">\n<div style=\"margin:7px; text-align:right; white-space:nowrap\">\n         1<br \/>\n         <br \/>\n         2<br \/>\n         <br \/>\n         3<br \/>\n         <br \/>\n         4<br \/>\n         <br \/>\n         5<br \/>\n         <br \/>\n         6<br \/>\n         <br \/>\n         7<br \/>\n         <br \/>\n         8<br \/>\n         <br \/>\n         9<br \/>\n         <br \/>\n         10<br \/>\n         <br \/>\n         11<br \/>\n         <br \/>\n         12<br \/>\n         <br \/>\n         13<br \/>\n         <br \/>\n         14<br \/>\n         <br \/>\n         15<br \/>\n         <br \/>\n         16<br \/>\n         <br \/>\n         17<br \/>\n         <br \/>\n         18<br \/>\n         <br \/>\n         19<br \/>\n         <br \/>\n         20<br \/>\n         <br \/>\n         21<br \/>\n         <br \/>\n         22<br \/>\n         <br \/>\n         23<br \/>\n         <br \/>\n         24<br \/>\n         <br \/>\n         25<br \/>\n         <br \/>\n         26<br \/>\n         <br \/>\n         27<br \/>\n         <br \/>\n         28<br \/>\n         <br \/>\n         29<br \/>\n         <br \/>\n         30<br \/>\n         <br \/>\n         31<br \/>\n         <br \/>\n         32<br \/>\n         <br \/>\n         33<br \/>\n         <br \/>\n         34<br \/>\n         <br \/>\n         35<br \/>\n         <br \/>\n         36<br \/>\n         <br \/>\n         37<br \/>\n         <br \/>\n         38<br \/>\n         <br \/>\n         39<br \/>\n         <br \/>\n         40<br \/>\n         <br \/>\n         41<br \/>\n         <br \/>\n         42<br \/>\n         <br \/>\n         43<br \/>\n         <br \/>\n         44<br \/>\n         <br \/>\n         45<br \/>\n         <br \/>\n         46<br \/>\n         <br \/>\n         47<br \/>\n         <br \/>\n         48<br \/>\n         <br \/>\n         49<br \/>\n         <br \/>\n         50<br \/>\n         <br \/>\n         51<br \/>\n         <br \/>\n         52<br \/>\n         <br \/>\n         53<br \/>\n         <br \/>\n         54<br \/>\n         <br \/>\n         55<br \/>\n         <br \/>\n         56<br \/>\n         <br \/>\n         57<br \/>\n         <br \/>\n         58<br \/>\n         <br \/>\n         59<br \/>\n         <br \/>\n         60<br \/>\n         <br \/>\n         61<br \/>\n         <br \/>\n         62<br \/>\n         <br \/>\n         63<br \/>\n         <br \/>\n         64<br \/>\n         <br \/>\n         65<br \/>\n         <br \/>\n         66<br \/>\n         <br \/>\n         67<br \/>\n         <br \/>\n         68<br \/>\n         <br \/>\n         69<br \/>\n         <br \/>\n         70<br \/>\n         <br \/>\n         71<br \/>\n         <br \/>\n         72<br \/>\n         <br \/>\n         73<br \/>\n         <br \/>\n         74<br \/>\n         <br \/>\n         75<br \/>\n         <br \/>\n         76<br \/>\n         <br \/>\n         77<br \/>\n         <br \/>\n         78<br \/>\n         <br \/>\n         79<br \/>\n         <br \/>\n         80<br \/>\n         <br \/>\n         81<br \/>\n         <br \/>\n         82<br \/>\n         <br \/>\n         83<br \/>\n         <br \/>\n         84<br \/>\n         <br \/>\n         85<br \/>\n         <br \/>\n         86<br \/>\n         \n        <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(0,130,132); padding:1px\">\n<div style=\"border:1px solid rgb(0,130,132)\">\n        <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(239,239,239); width:1242px; vertical-align:text-top\">\n<div style=\"margin:7px\">\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          using<br \/>\n         <\/span><br \/>\n         UnityEngine;<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;summary&gt;<br \/>\n          <br \/>\n          \/\/\/\u00a0Launch\u00a0projectile<br \/>\n          <br \/>\n          \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          public<br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          class<br \/>\n         <\/span><br \/>\n         WeaponScript\u00a0:\u00a0MonoBehaviour<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a01\u00a0&#8211;\u00a0Designer\u00a0variables<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0Projectile\u00a0prefab\u00a0for\u00a0shooting<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          public<br \/>\n         <\/span><br \/>\n         Transform\u00a0shotPrefab;<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0Cooldown\u00a0in\u00a0seconds\u00a0between\u00a0two\u00a0shots<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          public<br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          float<br \/>\n         <\/span><br \/>\n         shootingRate\u00a0=<br \/>\n         <span style=\"color:rgb(255,0,0)\"><br \/>\n          0<br \/>\n         <\/span><br \/>\n         .25f;<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a02\u00a0&#8211;\u00a0Cooldown<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          private<br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          float<br \/>\n         <\/span><br \/>\n         shootCooldown;<\/p>\n<p>         <span style=\"color:rgb(128,0,255)\"><br \/>\n          void<br \/>\n         <\/span><br \/>\n         Start()<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         shootCooldown\u00a0=\u00a00f;<br \/>\n         <br \/>\n         }<\/p>\n<p>         <span style=\"color:rgb(128,0,255)\"><br \/>\n          void<br \/>\n         <\/span><br \/>\n         Update()<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          if<br \/>\n         <\/span><br \/>\n         (shootCooldown\u00a0&gt;<br \/>\n         <span style=\"color:rgb(255,0,0)\"><br \/>\n          0<br \/>\n         <\/span><br \/>\n         )<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         shootCooldown\u00a0-=\u00a0Time.deltaTime;<br \/>\n         <br \/>\n         }<br \/>\n         <br \/>\n         }<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a03\u00a0&#8211;\u00a0Shooting\u00a0from\u00a0another\u00a0script<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0Create\u00a0a\u00a0new\u00a0projectile\u00a0if\u00a0possible<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          public<br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          void<br \/>\n         <\/span><br \/>\n         Attack(<br \/>\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          bool<br \/>\n         <\/span><br \/>\n         isEnemy)<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          if<br \/>\n         <\/span><br \/>\n         (CanAttack)<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         shootCooldown\u00a0=\u00a0shootingRate;<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0Create\u00a0a\u00a0new\u00a0shot<br \/>\n          <br \/>\n         <\/span><br \/>\n         var\u00a0shotTransform\u00a0=\u00a0Instantiate(shotPrefab)<br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          as<br \/>\n         <\/span><br \/>\n         Transform;<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0Assign\u00a0position<br \/>\n          <br \/>\n         <\/span><br \/>\n         shotTransform.position\u00a0=\u00a0transform.position;<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0The\u00a0is\u00a0enemy\u00a0property<br \/>\n          <br \/>\n         <\/span><br \/>\n         ShotScript\u00a0shot\u00a0=\u00a0shotTransform.gameObject.GetComponent&lt;ShotScript&gt;();<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          if<br \/>\n         <\/span><br \/>\n         (shot\u00a0!=<br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          null<br \/>\n         <\/span><br \/>\n         )<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         shot.isEnemyShot\u00a0=\u00a0isEnemy;<br \/>\n         <br \/>\n         }<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0Make\u00a0the\u00a0weapon\u00a0shot\u00a0always\u00a0towards\u00a0it<br \/>\n          <br \/>\n         <\/span><br \/>\n         MoveScript\u00a0move\u00a0=\u00a0shotTransform.gameObject.GetComponent&lt;MoveScript&gt;();<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          if<br \/>\n         <\/span><br \/>\n         (move\u00a0!=<br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          null<br \/>\n         <\/span><br \/>\n         )<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         move.direction\u00a0=<br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          this<br \/>\n         <\/span><br \/>\n         .transform.right;<br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0towards\u00a0in\u00a02D\u00a0space\u00a0is\u00a0the\u00a0right\u00a0of\u00a0the\u00a0sprite<br \/>\n          <br \/>\n         <\/span><br \/>\n         }<br \/>\n         <br \/>\n         }<br \/>\n         <br \/>\n         }<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0Is\u00a0the\u00a0weapon\u00a0ready\u00a0to\u00a0create\u00a0a\u00a0new\u00a0projectile?<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          public<br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          bool<br \/>\n         <\/span><br \/>\n         CanAttack<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         get<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          return<br \/>\n         <\/span><br \/>\n         shootCooldown\u00a0&lt;=\u00a00f;<br \/>\n         <br \/>\n         }<br \/>\n         <br \/>\n         }<br \/>\n         <br \/>\n         }\n        <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div>\n    \u5c06\u8fd9\u4e2a\u811a\u672c\u9644\u52a0\u5230\u4e3b\u89d2\u5bf9\u8c61\u4e0a\uff0c\u8bbe\u7f6e\u5176&#8221;<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Shot Prefab<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027\u4e3a&#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      PlayerShot<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u9884\u5236\u4f53\u3002\u6253\u5f00&#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      PlayerScript<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u811a\u672c\uff0c\u5728<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Update<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    ()\u65b9\u6cd5\u91cc\u9762\uff0c\u52a0\u5165\u4ee5\u4e0b\u7247\u6bb5\uff1a\n   <\/div>\n<div style=\"width:100%; border:1px solid rgb(227,227,227)\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); width:100%; font-family:Consolas,'Courier New'; font-size:12px; vertical-align:text-top; line-height:15px\">\n<tbody>\n<tr>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); color:rgb(0,130,132); background-color:rgb(227,227,227); vertical-align:text-top\">\n<div style=\"margin:7px; text-align:right; white-space:nowrap\">\n         1<br \/>\n         <br \/>\n         2<br \/>\n         <br \/>\n         3<br \/>\n         <br \/>\n         4<br \/>\n         <br \/>\n         5<br \/>\n         <br \/>\n         6<br \/>\n         <br \/>\n         7<br \/>\n         <br \/>\n         8<br \/>\n         <br \/>\n         9<br \/>\n         <br \/>\n         10<br \/>\n         <br \/>\n         11<br \/>\n         <br \/>\n         12<br \/>\n         <br \/>\n         13<br \/>\n         <br \/>\n         14<br \/>\n         <br \/>\n         15<br \/>\n         <br \/>\n         16<br \/>\n         <br \/>\n         17<br \/>\n         <br \/>\n         18<br \/>\n         <br \/>\n         19<br \/>\n         <br \/>\n         20<br \/>\n         <br \/>\n         21<br \/>\n         \n        <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(0,130,132); padding:1px\">\n<div style=\"border:1px solid rgb(0,130,132)\">\n        <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(239,239,239); width:1242px; vertical-align:text-top\">\n<div style=\"margin:7px\">\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          void<br \/>\n         <\/span><br \/>\n         Update()<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0&#8230;<br \/>\n          <br \/>\n         <\/span><br \/>\n         <br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a05\u00a0&#8211;\u00a0Shooting<br \/>\n          <br \/>\n         <\/span><br \/>\n         <span style=\"color:rgb(128,0,255)\"><br \/>\n          bool<br \/>\n         <\/span><br \/>\n         shoot\u00a0=\u00a0Input.GetButtonDown(<br \/>\n         <span style=\"color:rgb(128,0,0)\"><br \/>\n          &#8220;Fire1&#8221;<br \/>\n         <\/span><br \/>\n         );<br \/>\n         <br \/>\n         shoot\u00a0|=\u00a0Input.GetButtonDown(<br \/>\n         <span style=\"color:rgb(128,0,0)\"><br \/>\n          &#8220;Fire2&#8221;<br \/>\n         <\/span><br \/>\n         );<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0Careful:\u00a0For\u00a0Mac\u00a0users,\u00a0ctrl\u00a0+\u00a0arrow\u00a0is\u00a0a\u00a0bad\u00a0idea<br \/>\n          <br \/>\n         <\/span><br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          if<br \/>\n         <\/span><br \/>\n         (shoot)<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         WeaponScript\u00a0weapon\u00a0=\u00a0GetComponent&lt;WeaponScript&gt;();<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          if<br \/>\n         <\/span><br \/>\n         (weapon\u00a0!=<br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          null<br \/>\n         <\/span><br \/>\n         )<br \/>\n         <br \/>\n         {<br \/>\n         <br \/>\n         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0false\u00a0because\u00a0the\u00a0player\u00a0is\u00a0not\u00a0an\u00a0enemy<br \/>\n          <br \/>\n         <\/span><br \/>\n         weapon.Attack(<br \/>\n         <span style=\"color:rgb(0,0,255)\"><br \/>\n          false<br \/>\n         <\/span><br \/>\n         );<br \/>\n         <br \/>\n         }<br \/>\n         <br \/>\n         }<\/p>\n<p>         <span style=\"color:rgb(0,128,0)\"><br \/>\n          \/\/\u00a0&#8230;<br \/>\n          <br \/>\n         <\/span><br \/>\n         }\n        <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/p><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u5f53\u6536\u5230\u5c04\u51fb\u7684\u6309\u94ae\u72b6\u6001\uff0c\u8c03\u7528<br \/>\n   <span style=\"color:#3cb371\"><br \/>\n    <strong><br \/>\n     Attack(false)<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   \u65b9\u6cd5\u3002\u73b0\u5728\u8fd0\u884c\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<\/p><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   <br \/>\n   \u63a5\u4e0b\u6765\uff0c\u51c6\u5907\u521b\u5efa\u654c\u4eba\u7684\u5b50\u5f39\u3002<br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u5bfc\u5165\u654c\u4eba\u5b50\u5f39\u56fe\u7247<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u5230<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    &#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      Textures<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u6587\u4ef6\u5939\uff0c<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u9009\u4e2d&#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      PlayerShot<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u9884\u5236\u4f53\uff0c\u6309\u4e0b<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Ctrl+D<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    \u8fdb\u884c\u590d\u5236\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      EnemyShot1<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\uff0c\u7136\u540e\u6539\u53d8\u5176<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Sprite<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    \u4e3a\u521a\u624d\u5bfc\u5165\u7684\u56fe\u7247\uff0c\u8bbe\u7f6e\u5176<br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Scale<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    \u4e3a<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    (0.35, 0.35, 1)\u3002\u63a5\u7740\uff0c\u8ba9\u7ae0\u9c7c\u53ef\u4ee5\u5c04\u51fb\u3002\u5c06&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      WeaponScript<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u811a\u672c\u9644\u52a0\u5230\u7ae0\u9c7c\u5bf9\u8c61\u4e0a\uff0c\u62d6\u52a8&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      EnemyShot1<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u9884\u5236\u4f53\u5230\u5176&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Shot Prefab<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027\uff0c\u521b\u5efa\u4e00\u4e2a\u811a\u672c\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      EnemyScript<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\uff0c\u7528\u6765\u7b80\u5355\u5730\u6bcf\u4e00\u5e27\u8fdb\u884c\u81ea\u52a8\u5c04\u51fb\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<br \/>\n   <\/span>\n  <\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px; width:100%; border:1px solid rgb(227,227,227)\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); width:100%; font-family:Consolas,'Courier New'; font-size:12px; vertical-align:text-top; line-height:15px\">\n<tbody>\n<tr>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); color:rgb(0,130,132); background-color:rgb(227,227,227); vertical-align:text-top\">\n<div style=\"margin:7px; text-align:right; white-space:nowrap\">\n        1<br \/>\n        <br \/>\n        2<br \/>\n        <br \/>\n        3<br \/>\n        <br \/>\n        4<br \/>\n        <br \/>\n        5<br \/>\n        <br \/>\n        6<br \/>\n        <br \/>\n        7<br \/>\n        <br \/>\n        8<br \/>\n        <br \/>\n        9<br \/>\n        <br \/>\n        10<br \/>\n        <br \/>\n        11<br \/>\n        <br \/>\n        12<br \/>\n        <br \/>\n        13<br \/>\n        <br \/>\n        14<br \/>\n        <br \/>\n        15<br \/>\n        <br \/>\n        16<br \/>\n        <br \/>\n        17<br \/>\n        <br \/>\n        18<br \/>\n        <br \/>\n        19<br \/>\n        <br \/>\n        20<br \/>\n        <br \/>\n        21<br \/>\n        <br \/>\n        22<br \/>\n        <br \/>\n        23<br \/>\n        <br \/>\n        24<br \/>\n        \n       <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(0,130,132); padding:1px\">\n<div style=\"border:1px solid rgb(0,130,132)\">\n       <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(239,239,239); width:1242px; vertical-align:text-top\">\n<div style=\"margin:7px\">\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         using<br \/>\n        <\/span><br \/>\n        UnityEngine;<\/p>\n<p>        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\/\u00a0&lt;summary&gt;<br \/>\n         <br \/>\n         \/\/\/\u00a0Enemy\u00a0generic\u00a0behavior<br \/>\n         <br \/>\n         \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         public<br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(128,0,255)\"><br \/>\n         class<br \/>\n        <\/span><br \/>\n        EnemyScript\u00a0:\u00a0MonoBehaviour<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         private<br \/>\n        <\/span><br \/>\n        WeaponScript\u00a0weapon;<\/p>\n<p>        <span style=\"color:rgb(128,0,255)\"><br \/>\n         void<br \/>\n        <\/span><br \/>\n        Awake()<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a0Retrieve\u00a0the\u00a0weapon\u00a0only\u00a0once<br \/>\n         <br \/>\n        <\/span><br \/>\n        weapon\u00a0=\u00a0GetComponent&lt;WeaponScript&gt;();<br \/>\n        <br \/>\n        }<\/p>\n<p>        <span style=\"color:rgb(128,0,255)\"><br \/>\n         void<br \/>\n        <\/span><br \/>\n        Update()<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        <span style=\"color:rgb(0,128,0)\"><br \/>\n         \/\/\u00a0Auto-fire<br \/>\n         <br \/>\n        <\/span><br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         if<br \/>\n        <\/span><br \/>\n        (weapon\u00a0!=<br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         null<br \/>\n        <\/span><br \/>\n        &amp;&amp;\u00a0weapon.CanAttack)<br \/>\n        <br \/>\n        {<br \/>\n        <br \/>\n        weapon.Attack(<br \/>\n        <span style=\"color:rgb(0,0,255)\"><br \/>\n         true<br \/>\n        <\/span><br \/>\n        );<br \/>\n        <br \/>\n        }<br \/>\n        <br \/>\n        }<br \/>\n        <br \/>\n        }\n       <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u5c06\u6b64\u811a\u672c\u9644\u52a0\u5230\u7ae0\u9c7c\u5bf9\u8c61\u4e0a\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n<div>\n    \u73b0\u5728\u8fd0\u884c\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<\/p><\/div>\n<\/p><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   <br \/>\n   \u53ef\u4ee5\u770b\u5230\u7ae0\u9c7c\u5411\u53f3\u5c04\u51fb\u4e86\u5b50\u5f39\uff0c\u8fd9\u662f\u56e0\u4e3a\u4ee3\u7801\u5c31\u662f\u8ba9\u5b83\u90a3\u4e48\u505a\u7684\u3002\u5b9e\u9645\u4e0a\uff0c\u5e94\u8be5\u505a\u5230\u53ef\u4ee5\u671d\u5411\u4efb\u4f55\u65b9\u5411\u5c04\u51fb\u5b50\u5f39\u3002\u5728\u8fd9\u91cc\uff0c\u521b\u5efa\u4e00\u4e2a\u7a7a\u5bf9\u8c61\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponObject<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\uff0c\u5220\u9664\u7ae0\u9c7c\u9884\u5236\u4f53\u8eab\u4e0a\u7684&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponScript<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u811a\u672c\uff0c\u5c06&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponScript<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u811a\u672c\u9644\u52a0\u5230&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponObject<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u5bf9\u8c61\u4e0a\uff0c\u5e76\u4e14<br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    \u62d6\u52a8&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      EnemyShot1<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u9884\u5236\u4f53\u5230\u5176&#8221;<br \/>\n   <\/span><br \/>\n   <span style=\"font-size:10.5pt; line-height:1.5\"><br \/>\n    <span style=\"color:#3cb371\"><br \/>\n     <strong><br \/>\n      Shot Prefab<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u5c5e\u6027\uff0c\u8bbe\u7f6e<br \/>\n   <\/span><br \/>\n   &#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponObject<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u5bf9\u8c61\u7684&#8221;<br \/>\n   <span style=\"color:#3cb371\"><br \/>\n    <strong><br \/>\n     Rotation<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u5c5e\u6027\u4e3a(0, 0, 180)\uff0c\u7136\u540e\u4fdd\u5b58\u4e3a\u9884\u5236\uff0c\u5982\u4e0b\u6240\u793a\uff1a<br \/>\n   <\/p>\n<div>\n<div>\n     \u63a5\u7740\uff0c\u4fee\u6539&#8221;<br \/>\n     <strong><br \/>\n      <span style=\"color:#ff6820\"><br \/>\n       EnemyScript<br \/>\n      <\/span><br \/>\n     <\/strong><br \/>\n     &#8220;\uff0c\u4ee3\u7801\u4e3a\u5982\u4e0b\uff1a\n    <\/div>\n<div style=\"width:100%; border:1px solid rgb(227,227,227)\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); width:100%; font-family:Consolas,'Courier New'; font-size:12px; vertical-align:text-top; line-height:15px\">\n<tbody>\n<tr>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); color:rgb(0,130,132); background-color:rgb(227,227,227); vertical-align:text-top\">\n<div style=\"margin:7px; text-align:right; white-space:nowrap\">\n          1<br \/>\n          <br \/>\n          2<br \/>\n          <br \/>\n          3<br \/>\n          <br \/>\n          4<br \/>\n          <br \/>\n          5<br \/>\n          <br \/>\n          6<br \/>\n          <br \/>\n          7<br \/>\n          <br \/>\n          8<br \/>\n          <br \/>\n          9<br \/>\n          <br \/>\n          10<br \/>\n          <br \/>\n          11<br \/>\n          <br \/>\n          12<br \/>\n          <br \/>\n          13<br \/>\n          <br \/>\n          14<br \/>\n          <br \/>\n          15<br \/>\n          <br \/>\n          16<br \/>\n          <br \/>\n          17<br \/>\n          <br \/>\n          18<br \/>\n          <br \/>\n          19<br \/>\n          <br \/>\n          20<br \/>\n          <br \/>\n          21<br \/>\n          <br \/>\n          22<br \/>\n          <br \/>\n          23<br \/>\n          <br \/>\n          24<br \/>\n          <br \/>\n          25<br \/>\n          <br \/>\n          26<br \/>\n          <br \/>\n          27<br \/>\n          <br \/>\n          28<br \/>\n          \n         <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(0,130,132); padding:1px\">\n<div style=\"border:1px solid rgb(0,130,132)\">\n         <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(239,239,239); width:1242px; vertical-align:text-top\">\n<div style=\"margin:7px\">\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           using<br \/>\n          <\/span><br \/>\n          System.Collections.Generic;<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           using<br \/>\n          <\/span><br \/>\n          UnityEngine;<\/p>\n<p>          <span style=\"color:rgb(0,128,0)\"><br \/>\n           \/\/\/\u00a0&lt;summary&gt;<br \/>\n           <br \/>\n           \/\/\/\u00a0Enemy\u00a0generic\u00a0behavior<br \/>\n           <br \/>\n           \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n           <br \/>\n          <\/span><br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           public<br \/>\n          <\/span><br \/>\n          <span style=\"color:rgb(128,0,255)\"><br \/>\n           class<br \/>\n          <\/span><br \/>\n          EnemyScript\u00a0:\u00a0MonoBehaviour<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           private<br \/>\n          <\/span><br \/>\n          WeaponScript[]\u00a0weapons;<\/p>\n<p>          <span style=\"color:rgb(128,0,255)\"><br \/>\n           void<br \/>\n          <\/span><br \/>\n          Awake()<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,128,0)\"><br \/>\n           \/\/\u00a0Retrieve\u00a0the\u00a0weapon\u00a0only\u00a0once<br \/>\n           <br \/>\n          <\/span><br \/>\n          weapons\u00a0=\u00a0GetComponentsInChildren&lt;WeaponScript&gt;();<br \/>\n          <br \/>\n          }<\/p>\n<p>          <span style=\"color:rgb(128,0,255)\"><br \/>\n           void<br \/>\n          <\/span><br \/>\n          Update()<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           foreach<br \/>\n          <\/span><br \/>\n          (WeaponScript\u00a0weapon<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           in<br \/>\n          <\/span><br \/>\n          weapons)<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,128,0)\"><br \/>\n           \/\/\u00a0Auto-fire<br \/>\n           <br \/>\n          <\/span><br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           if<br \/>\n          <\/span><br \/>\n          (weapon\u00a0!=<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           null<br \/>\n          <\/span><br \/>\n          &amp;&amp;\u00a0weapon.CanAttack)<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          weapon.Attack(<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           true<br \/>\n          <\/span><br \/>\n          );<br \/>\n          <br \/>\n          }<br \/>\n          <br \/>\n          }<br \/>\n          <br \/>\n          }<br \/>\n          <br \/>\n          }\n         <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div style=\"font-family:'Microsoft YaHei UI','Microsoft YaHei',SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif,'Microsoft YaHei',Georgia,Helvetica,Arial,sans-serif,\u5b8b\u4f53,PMingLiU,serif; font-size:14px; line-height:21px\">\n   \u53ef\u4ee5\u9002\u5f53\u8c03\u6574\u5b50\u5f39\u7684\u79fb\u52a8\u901f\u5ea6\uff0c\u5b83\u5e94\u8be5\u5feb\u4e8e\u7ae0\u9c7c\u7684\u79fb\u52a8\u901f\u5ea6\u3002\u73b0\u5728\u8fd0\u884c\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p>\n   \u6309\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8f7b\u6613\u5b9e\u73b0\u591a\u4e2a\u65b9\u5411\u7684\u5c04\u51fb\u3002\u590d\u5236\u6dfb\u52a0\u4e00\u4e2a&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponObject<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u5bf9\u8c61\uff0c\u8ba9\u8fd9\u4e24\u4e2a&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     WeaponObject<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u5bf9\u8c61\u7684\u65cb\u8f6c\u4e0d\u540c\u5373\u53ef\u3002\u73b0\u5728\u4e3b\u89d2\u88ab\u7ae0\u9c7c\u653b\u51fb\u5230\uff0c\u4f46\u662f\u6ca1\u6709\u4efb\u4f55\u4f24\u5bb3\u3002\u5c06&#8221;<br \/>\n   <span style=\"color:#ff6820\"><br \/>\n    <strong><br \/>\n     HealthScript<br \/>\n    <\/strong><br \/>\n   <\/span><br \/>\n   &#8220;\u811a\u672c\u9644\u52a0\u5230\u4e3b\u89d2\u5bf9\u8c61\u4e0a\uff0c\u786e\u4fdd&#8221;<br \/>\n   <strong><br \/>\n    <span style=\"color:#009300\"><br \/>\n     Is\u00a0Enemy<br \/>\n    <\/span><br \/>\n   <\/strong><br \/>\n   &#8220;\u5c5e\u6027\u4e0d\u88ab\u52fe\u9009\u3002\u73b0\u5728\u8fd0\u884c\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<\/p>\n<div>\n    <br \/>\n    \u76ee\u524d\uff0c\u5f53\u4e3b\u89d2\u548c\u7ae0\u9c7c\u78b0\u649e\u65f6\uff0c\u4ec5\u4ec5\u53ea\u662f\u963b\u788d\u5bf9\u65b9\u7684\u79fb\u52a8\u800c\u5df2\uff0c\u5728\u8fd9\u91cc\u6539\u6210\u4e92\u76f8\u53d7\u5230\u4f24\u5bb3\u3002\u6253\u5f00&#8221;<br \/>\n    <span style=\"color:#ff6820\"><br \/>\n     <strong><br \/>\n      PlayerScript<br \/>\n     <\/strong><br \/>\n    <\/span><br \/>\n    &#8220;\u6587\u4ef6\uff0c\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<div style=\"width:100%; border:1px solid rgb(227,227,227)\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); width:100%; font-family:Consolas,'Courier New'; font-size:12px; vertical-align:text-top; line-height:15px\">\n<tbody>\n<tr>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); color:rgb(0,130,132); background-color:rgb(227,227,227); vertical-align:text-top\">\n<div style=\"margin:7px; text-align:right; white-space:nowrap\">\n          1<br \/>\n          <br \/>\n          2<br \/>\n          <br \/>\n          3<br \/>\n          <br \/>\n          4<br \/>\n          <br \/>\n          5<br \/>\n          <br \/>\n          6<br \/>\n          <br \/>\n          7<br \/>\n          <br \/>\n          8<br \/>\n          <br \/>\n          9<br \/>\n          <br \/>\n          10<br \/>\n          <br \/>\n          11<br \/>\n          <br \/>\n          12<br \/>\n          <br \/>\n          13<br \/>\n          <br \/>\n          14<br \/>\n          <br \/>\n          15<br \/>\n          <br \/>\n          16<br \/>\n          <br \/>\n          17<br \/>\n          <br \/>\n          18<br \/>\n          <br \/>\n          19<br \/>\n          <br \/>\n          20<br \/>\n          <br \/>\n          21<br \/>\n          <br \/>\n          22<br \/>\n          <br \/>\n          23<br \/>\n          <br \/>\n          24<br \/>\n          <br \/>\n          25<br \/>\n          \n         <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(0,130,132); padding:1px\">\n<div style=\"border:1px solid rgb(0,130,132)\">\n         <\/div>\n<\/td>\n<td style=\"border-collapse:collapse; border:1px solid rgb(187,187,187); background-color:rgb(239,239,239); width:1242px; vertical-align:text-top\">\n<div style=\"margin:7px\">\n          <span style=\"color:rgb(0,128,0)\"><br \/>\n           \/\/PlayerScript.cs<br \/>\n           <br \/>\n           \/\/&#8230;.<br \/>\n           <br \/>\n          <\/span><br \/>\n          <br \/>\n          <span style=\"color:rgb(128,0,255)\"><br \/>\n           void<br \/>\n          <\/span><br \/>\n          OnCollisionEnter2D(Collision2D\u00a0collision)<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          <span style=\"color:rgb(128,0,255)\"><br \/>\n           bool<br \/>\n          <\/span><br \/>\n          damagePlayer\u00a0=<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           false<br \/>\n          <\/span><br \/>\n          ;<\/p>\n<p>          <span style=\"color:rgb(0,128,0)\"><br \/>\n           \/\/\u00a0Collision\u00a0with\u00a0enemy<br \/>\n           <br \/>\n          <\/span><br \/>\n          EnemyScript\u00a0enemy\u00a0=\u00a0collision.gameObject.GetComponent&lt;EnemyScript&gt;();<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           if<br \/>\n          <\/span><br \/>\n          (enemy\u00a0!=<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           null<br \/>\n          <\/span><br \/>\n          )<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,128,0)\"><br \/>\n           \/\/\u00a0Kill\u00a0the\u00a0enemy<br \/>\n           <br \/>\n          <\/span><br \/>\n          HealthScript\u00a0enemyHealth\u00a0=\u00a0enemy.GetComponent&lt;HealthScript&gt;();<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           if<br \/>\n          <\/span><br \/>\n          (enemyHealth\u00a0!=<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           null<br \/>\n          <\/span><br \/>\n          )\u00a0enemyHealth.Damage(enemyHealth.hp);<\/p>\n<p>          damagePlayer\u00a0=<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           true<br \/>\n          <\/span><br \/>\n          ;<br \/>\n          <br \/>\n          }<\/p>\n<p>          <span style=\"color:rgb(0,128,0)\"><br \/>\n           \/\/\u00a0Damage\u00a0the\u00a0player<br \/>\n           <br \/>\n          <\/span><br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           if<br \/>\n          <\/span><br \/>\n          (damagePlayer)<br \/>\n          <br \/>\n          {<br \/>\n          <br \/>\n          HealthScript\u00a0playerHealth\u00a0=<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           this<br \/>\n          <\/span><br \/>\n          .GetComponent&lt;HealthScript&gt;();<br \/>\n          <br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           if<br \/>\n          <\/span><br \/>\n          (playerHealth\u00a0!=<br \/>\n          <span style=\"color:rgb(0,0,255)\"><br \/>\n           null<br \/>\n          <\/span><br \/>\n          )\u00a0playerHealth.Damage(<br \/>\n          <span style=\"color:rgb(255,0,0)\"><br \/>\n           1<br \/>\n          <\/span><br \/>\n          );<br \/>\n          <br \/>\n          }<br \/>\n          <br \/>\n          }\n         <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div>\n     \u81f3\u6b64\uff0c\u4e00\u4e2a\u57fa\u672c\u7684\u5c04\u51fb\u6e38\u620f\u5b8c\u6210\u3002<br \/>\n     <a href=\"http:\/\/blog.csdn.net\/akof1314\/article\/details\/23261651\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n      \u4e0b\u4e00\u7bc7<br \/>\n     <\/a><br \/>\n     \uff0c\u5c06\u8fdb\u884c\u589e\u5f3a\u8868\u73b0\uff0c\u5b8c\u5584\u6e38\u620f\u3002\n    <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002 \u6559\u7a0b\u6765\u81ea\uff1a http:\/\/pixelnest.io\/tutorials\/2d-game [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-2208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002 \u6559\u7a0b\u6765\u81ea\uff1a http:\/\/pixelnest.io\/tutorials\/2d-game [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f-2\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-13T10:00:17+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\",\"datePublished\":\"2025-05-13T10:00:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/\"},\"wordCount\":666,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5c04\u51fb\u6e38\u620f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/\",\"name\":\"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-05-13T10:00:17+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.wunen.com\/#website\",\"url\":\"http:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"http:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f-2\/","og_locale":"zh_CN","og_type":"article","og_title":"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002 \u6559\u7a0b\u6765\u81ea\uff1a http:\/\/pixelnest.io\/tutorials\/2d-game [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f-2\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-05-13T10:00:17+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/"},"author":{"name":"admin@wunen","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f","datePublished":"2025-05-13T10:00:17+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/"},"wordCount":666,"commentCount":0,"publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5c04\u51fb\u6e38\u620f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/","name":"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"http:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-05-13T10:00:17+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/13\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"Unity 4.3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f"}]},{"@type":"WebSite","@id":"http:\/\/www.wunen.com\/#website","url":"http:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"http:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"http:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/2208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=2208"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/2208\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=2208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=2208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=2208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}