{"id":677,"date":"2025-09-22T15:39:10","date_gmt":"2025-09-22T12:09:10","guid":{"rendered":"https:\/\/rayalancer.ir\/?p=677"},"modified":"2025-09-22T18:38:50","modified_gmt":"2025-09-22T15:08:50","slug":"%da%a9%d8%af-%da%86%d8%b1%d8%ae%d8%b4-%d8%a2%d8%a8%d8%ac%da%a9%d8%aa-%d8%af%d8%b1-%db%8c%d9%88%d9%86%db%8c%d8%aa%db%8c-%d8%a8%d8%a7-%d9%81%d8%b4%d8%b1%d8%af%d9%86-%da%a9%d9%84%db%8c%d8%af","status":"publish","type":"post","link":"https:\/\/rayalancer.ir\/?p=677","title":{"rendered":"\u06a9\u062f \u0686\u0631\u062e\u0634 \u0622\u0628\u062c\u06a9\u062a \u062f\u0631 \u06cc\u0648\u0646\u06cc\u062a\u06cc \u0628\u0627 \u0641\u0634\u0631\u062f\u0646 \u06a9\u0644\u06cc\u062f"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>using UnityEngine;\n\npublic class RotateObject : MonoBehaviour\n{\n    void Update()\n    {\n        if (Input.GetKey(KeyCode.E))\n        {\n            transform.Rotate(new Vector3(0f, 30f * Time.deltaTime, 0f));\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u0646\u06a9\u0627\u062a \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0648 \u062a\u06a9\u0645\u06cc\u0644\u06cc:<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u06f1. \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0641\u0642\u0637 <strong>\u06cc\u06a9 \u0628\u0627\u0631<\/strong> \u062f\u0631 \u0647\u0631 \u0641\u0634\u0631\u062f\u0646 \u06a9\u0644\u06cc\u062f \u0686\u0631\u062e\u0634 \u0627\u0646\u062c\u0627\u0645 \u0634\u0648\u062f (\u0646\u0647 \u0645\u062f\u0627\u0648\u0645 \u062f\u0631 \u0647\u0631 \u0641\u0631\u06cc\u0645):<\/h3>\n\n\n\n<p>\u0627\u0632 <code>Input.GetKeyDown<\/code> \u0628\u0647 \u062c\u0627\u06cc <code>Input.GetKey<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (Input.GetKeyDown(KeyCode.E))\n{\n    transform.Rotate(new Vector3(0f, 30f, 0f)); \/\/ \u0628\u062f\u0648\u0646 Time.deltaTime \u0686\u0648\u0646 \u0641\u0642\u0637 \u06cc\u06a9 \u0628\u0627\u0631 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f\n}<\/code><\/pre>\n\n\n\n<p>\u06a9\u062f \u0686\u0631\u062e\u0634 \u062f\u0631 \u06cc\u0648\u0646\u06cc\u062a\u06cc  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0646\u06a9\u0627\u062a \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0648 \u062a\u06a9\u0645\u06cc\u0644\u06cc: \u06f1. \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0641\u0642\u0637 \u06cc\u06a9 \u0628\u0627\u0631 \u062f\u0631 \u0647\u0631 \u0641\u0634\u0631\u062f\u0646 \u06a9\u0644\u06cc\u062f \u0686\u0631\u062e\u0634 \u0627\u0646\u062c\u0627\u0645 \u0634\u0648\u062f (\u0646\u0647 \u0645\u062f\u0627\u0648\u0645 \u062f\u0631 \u0647\u0631 \u0641\u0631\u06cc\u0645): \u0627\u0632 Input.GetKeyDown \u0628\u0647 \u062c\u0627\u06cc Input.GetKey \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f: \u06a9\u062f&hellip;<\/p>\n","protected":false},"author":1,"featured_media":678,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,19],"tags":[],"class_list":["post-677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-55","category-19"],"_links":{"self":[{"href":"https:\/\/rayalancer.ir\/index.php?rest_route=\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rayalancer.ir\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rayalancer.ir\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rayalancer.ir\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rayalancer.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=677"}],"version-history":[{"count":1,"href":"https:\/\/rayalancer.ir\/index.php?rest_route=\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":679,"href":"https:\/\/rayalancer.ir\/index.php?rest_route=\/wp\/v2\/posts\/677\/revisions\/679"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rayalancer.ir\/index.php?rest_route=\/wp\/v2\/media\/678"}],"wp:attachment":[{"href":"https:\/\/rayalancer.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rayalancer.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rayalancer.ir\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}