{"id":2004,"date":"2025-05-09T06:00:20","date_gmt":"2025-05-08T22:00:20","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/"},"modified":"2025-05-09T06:00:20","modified_gmt":"2025-05-08T22:00:20","slug":"%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/","title":{"rendered":"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9"},"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<p>\n   public static bool isShow = false;\/\/\u7279\u6548\n  <\/p>\n<p>\n   public \u00a0int enemyHp = 3;\/\/\u654c\u4eba\u8840\u91cf<br \/>\n   <br \/>\n   public int playerHp = 10;\/\/\u73a9\u5bb6\u8840\u91cf<br \/>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    public static GameManager gm;\/\/unity\u5355\u4f8b\u5199\u6cd5<br \/>\n    <br \/>\n    void Start () {<br \/>\n    <!-- --><br \/>\n    <br \/>\n    gm = this;<br \/>\n    <br \/>\n    }<br \/>\n   <\/span>\n  <\/p>\n<p>\n   if (Input.GetMouseButtonDown(0))<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    \/\/Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);<br \/>\n   <\/span><br \/>\n   <br \/>\n   \/\/Ray ray = new Ray(playerPos.position, zhiZhu.position);\/\/\u5c04\u7ebf\uff1a\u73a9\u5bb6\u5230\u8718\u86db\u7684\u4f4d\u7f6e,\u6e90\u5934\u53ea\u6709\u8718\u86db<br \/>\n   <br \/>\n   RaycastHit hit;<br \/>\n   <br \/>\n   \/\/if (Physics.Raycast(ray, out hit,100))<br \/>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    Vector3 dir = transform.TransformDirection(transform.forward);\/\/TransformDirection\u5411\u524d\u65b9\u5411<br \/>\n    <br \/>\n    if (Physics.Raycast(playerPos.position,dir,out hit,100))<br \/>\n    <br \/>\n    \/\/playerPos.position:\u67aa\u53e3 dir:\u5411\u524d \u00a0out hit:\u5c04\u7ebf \u00a0100\uff1a\u957f\u5ea6<br \/>\n   <\/span><br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    Debug.DrawLine(playerPos.position, hit.point, Color.red);\/\/\u7ed8\u5236\u4e00\u6761\u7ea2\u8272\u7684\u5c04\u7ebf<br \/>\n   <\/span><br \/>\n   <br \/>\n   \/\/\u5c04\u51fb\u52a8\u753b<br \/>\n   <br \/>\n   \/\/an.Play(&#8220;Shoot&#8221;);<br \/>\n   <br \/>\n   \/\/an.CrossFade(&#8220;Shoot&#8221;, 0.167f);<br \/>\n   <br \/>\n   ps = PlayerState.Shoot;<br \/>\n   <br \/>\n   GetState(ps);<br \/>\n   <br \/>\n   \/\/\u64ad\u653e\u5c04\u51fb\u97f3\u6548<br \/>\n   <br \/>\n   audios.Play();\n  <\/p>\n<p>\n   if (zhiZhu != null)<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    \/\/\u8c03\u7528\u8718\u86db\u7684\u64ad\u653e\u548c\u7279\u6548\u548c\u58f0\u97f3\u7684\u65b9\u6cd5<br \/>\n    <br \/>\n    zhiZhu.transform.GetComponent&lt;Enemy&gt;().FindEnemy(hit.collider.gameObject);\/\/\u5c04\u7ebf\u672c\u8eab<br \/>\n   <\/span><br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   \/\/if (hit.collider.gameObject.name.Equals(&#8220;Enemy&#8221;))<br \/>\n   <br \/>\n   \/\/{<br \/>\n   <!-- --><br \/>\n   <br \/>\n   \/\/\u00a0\u00a0 \u00a0print(&#8220;aaaaaaaaaaaa&#8221;);<br \/>\n   <br \/>\n   \/\/\u00a0\u00a0 \u00a0Destroy(hit.collider.gameObject, 1f);<br \/>\n   <br \/>\n   \/\/}<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }\n  <\/p>\n<p>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    float timer = 0.167f;\/\/\u8ba1\u65f6\u5668<br \/>\n   <\/span><br \/>\n   <br \/>\n   void FindPlayer()<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   if (zhiZhu!=null)<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   \/\/\u73a9\u5bb6\u8ddd\u79bb\u8718\u86db10\u7c73<br \/>\n   <br \/>\n   if (Vector3.Distance(transform.position, zhiZhu.position) &lt;= 10)\/\/\u81ea\u8eab\u7684\u4f4d\u7f6e\u8ddd\u79bb\u654c\u4eba\u7684\u4f4d\u7f6e<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   \/\/\u73a9\u5bb6\u8ddd\u79bb\u8718\u86db5\u7c73\uff0c\u81ea\u52a8\u653b\u51fb\u654c\u4eba<br \/>\n   <br \/>\n   if (Vector3.Distance(transform.position, zhiZhu.position) &lt;= 5)\/\/\u81ea\u8eab\u7684\u4f4d\u7f6e\u8ddd\u79bb\u654c\u4eba\u7684\u4f4d\u7f6e<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   ps = PlayerState.Shoot;<br \/>\n   <br \/>\n   GetState(ps);<br \/>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    timer -= Time.deltaTime;<br \/>\n    <br \/>\n    if (timer &lt; 0)<br \/>\n    <br \/>\n    {<br \/>\n    <!-- --><br \/>\n    <br \/>\n    \/\/\u64ad\u653e\u5c04\u51fb\u97f3\u6548<br \/>\n    <br \/>\n    audios.Play();<br \/>\n    <br \/>\n    timer = 0.167f;<br \/>\n    <br \/>\n    }<br \/>\n   <\/span><br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   else\/\/5&#8211;10<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   \/\/an.Play(&#8220;Run&#8221;);<br \/>\n   <br \/>\n   ps = PlayerState.Run;<br \/>\n   <br \/>\n   GetState(ps);<br \/>\n   <br \/>\n   <span style=\"color:#fe2c24;\"><br \/>\n    transform.Translate(transform.forward * Time.deltaTime * speed);<br \/>\n   <\/span><br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   else<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   ps = PlayerState.Idle;<br \/>\n   <br \/>\n   GetState(ps);<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }\n  <\/p>\n<p>\n   <br \/>\n   \/\/\u8718\u86db\u8ddd\u79bb\u73a9\u5bb6\u7684\u8ddd\u79bb10\u7c73<br \/>\n   <br \/>\n   if (Vector3.Distance(transform.position, player.position) &lt;= 10)<br \/>\n   <br \/>\n   { \u00a0 \/\/\u8718\u86db\u8ddd\u79bb\u73a9\u5bb6\u7684\u8ddd\u79bb5\u7c73<br \/>\n   <br \/>\n   if (Vector3.Distance(transform.position, player.position) &lt;= 5)<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   es = EnemyState.Attack;<br \/>\n   <br \/>\n   GetState(es);<\/p>\n<p>\n   }<br \/>\n   <br \/>\n   else<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   es = EnemyState.Walk;<br \/>\n   <br \/>\n   GetState(es);\n  <\/p>\n<p>\n   <span style=\"color:#fe2c24;\"><br \/>\n    \/\/transform.Translate(-transform.forward * Time.deltaTime * speed);<br \/>\n    <br \/>\n    Vector3 dir = transform.position &#8211; player.position;\/\/\u671d\u5411\u73a9\u5bb6<br \/>\n    <br \/>\n    transform.Translate(dir * Time.deltaTime * speed);<br \/>\n   <\/span><br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   else<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   es = EnemyState.Idle;<br \/>\n   <br \/>\n   GetState(es);<br \/>\n   <br \/>\n   }\n  <\/p>\n<p>\n   if (GameManager.isShow)<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   \/\/\u514b\u9686\u7206\u70b8\u7279\u6548\u5e76\u4f34\u968f\u97f3\u6548<br \/>\n   <br \/>\n   Instantiate(blood, transform.position, Quaternion.identity);<br \/>\n   <br \/>\n   AudioSource.PlayClipAtPoint(clip, transform.position);<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   \/\/\u5b9a\u4e49\u4e00\u4e2a\u63a5\u6536\u5c04\u7ebf\u70b9\u51fb\u7684\u5bf9\u8c61\uff0c\u7136\u540e\u5224\u65ad\u662f\u5426\u662f\u8718\u86db<br \/>\n   <br \/>\n   public void FindEnemy(GameObject g)\/\/\u521b\u5efa\u4e00\u4e2a\u6e38\u620f\u5bf9\u8c61<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   if (g.transform.CompareTag(&#8220;Enemy&#8221;))\/\/\u901a\u8fc7\u6807\u7b7e\u67e5\u627e\u654c\u4eba<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   StartCoroutine(Wait());\/\/\u8c03\u7528\u534f\u7a0b<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   IEnumerator Wait()<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   print(1111);<br \/>\n   <br \/>\n   yield return new WaitForSeconds(0.3f);\/\/0.3\u79d2\u540e\u6267\u884c<br \/>\n   <br \/>\n   GameManager.gm.enemyHp&#8211;;\/\/\u901a\u8fc7\u8c03\u7528GameManager\u5b9e\u4f8b\u5316<br \/>\n   <br \/>\n   if (GameManager.gm.enemyHp==0)<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   \/\/\u514b\u9686\u7206\u70b8\u7279\u6548\u5e76\u4f34\u968f\u7206\u70b8\u97f3\u6548<br \/>\n   <br \/>\n   Instantiate(blood, transform.position, Quaternion.identity);<br \/>\n   <br \/>\n   audios.Play();<br \/>\n   <br \/>\n   Destroy(gameObject,0.3f);<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   }\n  <\/p>\n<p>\n   float h = Input.GetAxis(&#8220;Horizontal&#8221;);<br \/>\n   <br \/>\n   float v = Input.GetAxis(&#8220;Vertical&#8221;);<br \/>\n   <br \/>\n   Vector3 pos = Vector3.zero;\n  <\/p>\n<p>\n   \/\/\u6309\u4e0b\u952e\u76d8\u4f7f\u73a9\u5bb6\u8d70\u52a8\/.<br \/>\n   <br \/>\n   if (h != 0 || v != 0)<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   \/\/\u8f6c\u65b9\u5411<br \/>\n   <br \/>\n   if (h &lt; 0)\/\/\u5de6\u8fb9<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   transform.rotation = Quaternion.Euler(0, -90, 0);<br \/>\n   <br \/>\n   pos = transform.forward * v + transform.right * -h;\/\/\u63a7\u5236\u524d\u540e\u5de6\u53f3<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   if (h &gt; 0)\/\/\u53f3\u8fb9<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   transform.rotation = Quaternion.Euler(0, 90, 0);<br \/>\n   <br \/>\n   pos = transform.forward * v + transform.right * -h;<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   if (v &lt; 0)\/\/\u540e\u9762<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   transform.rotation = Quaternion.Euler(0, 180, 0);<br \/>\n   <br \/>\n   pos = transform.forward * v + transform.right * h;<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   if (v &gt; 0)\/\/\u524d\u9762<br \/>\n   <br \/>\n   {<br \/>\n   <!-- --><br \/>\n   <br \/>\n   transform.rotation = Quaternion.Euler(0, 0, 0);<br \/>\n   <br \/>\n   pos = transform.forward * v + transform.right * h;<br \/>\n   <br \/>\n   }<br \/>\n   <br \/>\n   \/\/an.Play(&#8220;Walk&#8221;);<br \/>\n   <br \/>\n   \/\/\u5148\u5207\u6362\u5230Walk\u72b6\u6001\uff0c\u7136\u540e\u518d\u8c03\u7528Walk\u52a8\u753b<br \/>\n   <br \/>\n   ps = PlayerState.Walk;<br \/>\n   <br \/>\n   GetState(ps);\n  <\/p>\n<p>\n   transform.Translate(pos * Time.deltaTime * speed);\n  <\/p>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>public static bool isShow = false;\/\/\u7279\u6548 public \u00a0int enem [&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-2004","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>\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9 - \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\/09\/\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"public static bool isShow = false;\/\/\u7279\u6548 public \u00a0int enem [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-08T22:00:20+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=\"2 \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\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9\",\"datePublished\":\"2025-05-08T22:00:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/\"},\"wordCount\":374,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#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\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/\",\"name\":\"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-05-08T22:00:20+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#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\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9\"}]},{\"@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":"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9 - \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\/09\/\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"public static bool isShow = false;\/\/\u7279\u6548 public \u00a0int enem [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-05-08T22:00:20+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":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/"},"author":{"name":"admin@wunen","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9","datePublished":"2025-05-08T22:00:20+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/"},"wordCount":374,"commentCount":0,"publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#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\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/","name":"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"http:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-05-08T22:00:20+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#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\/09\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e7%9f%a5%e8%af%86%e7%82%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"\u5c04\u51fb\u6e38\u620f\u77e5\u8bc6\u70b9"}]},{"@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\/2004","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=2004"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/2004\/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=2004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=2004"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=2004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}