{"id":292269,"date":"2019-07-18T21:00:24","date_gmt":"2019-07-18T21:00:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=292269"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=292269","title":{"rendered":"\u041a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Unity. \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b, \u0447.2"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0412 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 (<a href=\"https:\/\/habr.com\/ru\/post\/458846\/\">https:\/\/habr.com\/ru\/post\/458846\/<\/a>), \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u041f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0434\u043b\u044f 2D-\u0438\u0433\u0440 (<a href=\"https:\/\/habr.com\/ru\/post\/456152\/\">https:\/\/habr.com\/ru\/post\/456152\/<\/a> )<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u0443\u0441\u043a\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e, \u0447\u0442\u043e \u043a\u043d\u043e\u043f\u043e\u0447\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u043d\u0435\u0439 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u2014 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0438\u0433\u0440\u0435 \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043d\u043e \u043d\u0430 \u0434\u0436\u043e\u0439\u0441\u0442\u0438\u043a. \u0414\u0430\u043b\u0435\u0435, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0438\u0433\u0440\u0430 \u043d\u0435 \u043f\u0440\u043e\u0448\u043b\u0430 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u044e \u0432 \u043f\u043b\u0435\u0439\u043c\u0430\u0440\u043a\u0435\u0442\u0435. \u0412 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0443\u044e \u043f\u044f\u0442\u043d\u0438\u0446\u0443 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442\u043a\u043b\u043e\u043d\u0451\u043d \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0441\u0431\u043e\u0440\u0430 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0445. \u041a \u0441\u043b\u043e\u0432\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440 \u00ab\u0420\u044b\u0446\u0430\u0440\u044c \u041a\u0430\u0434\u0430\u0432\u0430\u0440\u00bb \u0442\u0430\u043a \u0436\u0435 \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0431\u044b\u043b \u043e\u0442\u043a\u043b\u043e\u043d\u0451\u043d, \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u044f\u043a\u043e\u0431\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043c\u0441 (\u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u043d\u0435\u0439\u0448\u0435\u0439 \u0433\u043b\u0443\u043f\u043e\u0441\u0442\u044c\u044e \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0438\u0445 \u0431\u043e\u0442\u0430. \u0418\u0433\u0440\u0430 \u043d\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439). Google \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u043e\u0442 \u043c\u0435\u043d\u044f \u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u043e\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0437\u0430\u0447\u0435\u043c \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e. \u041d\u043e, \u0432\u0441\u0451 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0435\u043c, \u0447\u0442\u043e \u044f \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b \u043f\u0430\u0440\u0443 \u043e\u0448\u0438\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b \u0438\u0433\u0440\u0443 \u043d\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u044e. \u041e\u043d\u0430 \u0431\u044b\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u043f\u043b\u0435\u0439\u043c\u0430\u0440\u043a\u0435\u0442. \u0421\u0435\u0439\u0447\u0430\u0441, \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u0438 \u0441 \u044d\u0442\u043e\u0439 \u0438\u0433\u0440\u043e\u0439.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0441\u0447\u0451\u0442\u0443 \u0441\u0446\u0435\u043d\u0430, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u044b\u043b \u0437\u0430\u043a\u0440\u044b\u0442 \u043f\u0430\u0442\u0442\u0435\u0440\u043d <b> <\/p>\n<h4>\u0421\u0446\u0435\u043d\u0430<\/h4>\n<p>  \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0443\u0440\u043e\u0432\u043d\u044f\/\u043c\u0438\u0440\u0430, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438, \u043e\u0431\u044b\u0447\u043d\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0432\u0430\u0435\u043c\u043e\u0439 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u044c\u044e. <\/b><\/p>\n<p>  <b><\/p>\n<h4> \u0411\u043e\u043d\u0443\u0441<\/h4>\n<p><\/b><br \/>  \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u0435\u0434\u043c\u0435\u0442, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0438\u0433\u0440\u043e\u043a\u043e\u0432 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u043b\u0438\u044f\u043d\u0438\u0435<\/p>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c 2 \u0432\u0438\u0434\u0430 \u0431\u043e\u043d\u0443\u0441\u043e\u0432 \u0434\u043b\u044f \u041b\u0443\u043a\u0430\u0441\u0430:  <\/p>\n<ul>\n<li> \u0410\u043f\u0442\u0435\u0447\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u0438 \u043c\u043e\u043d\u0441\u0442\u0440\u043e\u0432<\/li>\n<li> \u0421\u0443\u043d\u0434\u0443\u043a\u0438 \u0441 \u043c\u0435\u0447\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u041b\u0443\u043a\u0430\u0441 \u0441\u043c\u043e\u0436\u0435\u0442 \u043c\u0435\u0442\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0430\u0433\u043e\u0432<\/li>\n<\/ul>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043d\u0443\u0441 \u0441 \u0430\u043f\u0442\u0435\u0447\u043a\u043e\u0439, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0444\u0430\u0431\u044b \u0441 \u043c\u043e\u043d\u0441\u0442\u0440\u0430\u043c\u0438. \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0435\u0435, \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u0430\u0434\u0430\u0442\u044c \u0431\u043e\u043d\u0443\u0441\u044b.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/in\/vr\/nm\/invrnmz1hvox6pbkhlytxnsht6y.png\"><\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c, \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 Enemy.cs:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">\/* \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c, \u0432\u044b\u043f\u0430\u0434\u0435\u0442 \u043b\u0438 \u0431\u043e\u043d\u0443\u0441 \u0434\u043b\u044f \u0438\u0433\u0440\u043e\u043a\u0430 \u043f\u0440\u0438 \u0441\u043c\u0435\u0440\u0442\u0438 \u043c\u043e\u043d\u0441\u0442\u0440\u0430*\/ \t[SerializeField] \tprivate GameObject bonusPref; \/\/ \u041f\u0440\u0435\u0444\u0430\u0431 \u0431\u043e\u043d\u0443\u0441\u0430 \t[SerializeField] \tprivate Transform instBonus; \/\/ \u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043b\u0435\u0442\u0430\u0442\u044c \u0431\u043e\u043d\u0443\u0441 \t[SerializeField] \tprivate int isBonus; \/\/ \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u0430\u043d\u0434\u043e\u043c\u0430, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u0432\u044b\u0434\u0430\u043d \u0431\u043e\u043d\u0443\u0441 \t\/* \u041a\u043e\u043d\u0435\u0446 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043d\u0443\u0441\u043e\u0432*\/  public void ifDie() \t{ \t\tif (Damage(0) &lt;= 0) \t\t{ \t\t\tisBonus = Random.Range(0,3); \t\t\tif (isBonus == 0) \t\t\t{ \t\t\t\tInstantiate(bonusPref, instBonus.position, instBonus.rotation); \t\t\t} \t\t\tDestroy(this.gameObject); \t\t} \t}<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u043c \u0442\u0438\u043f\u043e\u043c Damage(0) \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043b\u0438 Health 0. \u0415\u0441\u043b\u0438 \u0434\u0430, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0415\u0441\u043b\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u044b\u0431\u043e\u0440\u0435 \u0446\u0438\u0444\u0440\u044b 0, \u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0433\u0440\u043e\u043a\u0443 \u0431\u043e\u043d\u0443\u0441 \u0438 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0430\u0435\u043c \u043c\u043e\u043d\u0441\u0442\u0440\u0430.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u044d\u0442\u0438\u043c \u0431\u043e\u043d\u0443\u0441\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0433\u043e \u043f\u0440\u0435\u0444\u0430\u0431 \u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 SpriteRenderer, BoxCollider2D \u0438 Rigidbody2D. \u0422\u0430\u043a \u0436\u0435, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u044f\u0431\u043b\u043e\u043a\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u043e\u0441\u044c \u0441 \u0438\u0433\u0440\u043e\u043a\u043e\u043c:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">public void OnTriggerEnter2D(Collider2D collision)     { \t\tswitch (collision.gameObject.tag)         {             case \"Player\":             { \t\t\t\tHeroScript.Health = 100; \t\t\t\tDestroy(this.gameObject); \t\t\t} \t\t\tbreak; \t\t} \t}<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<a href=\"https:\/\/video.tedomum.net\/videos\/watch\/3b2c468f-d5e0-49a5-887e-a86c6ccf4bc5\"> \u043f\u0440\u0435\u0432\u044c\u044e \u0440\u043e\u043b\u0438\u043a <\/a><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0431\u043e\u043d\u0443\u0441 \u0432\u044b\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043c\u0435\u0447\u0435\u0439. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443, \u043a\u0430\u043a \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0431\u0440\u0451\u0432\u0435\u043d. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u041b\u0443\u043a\u0430\u0441 \u043f\u043e\u0434\u0431\u0435\u0440\u0451\u0442 \u043c\u0435\u0447\u0438, \u0438\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u0440\u043e\u0441\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0437\u043e\u043d\u0435 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u0432, \u0430 \u043d\u0435 \u0442\u043e \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u041b\u0443\u043a\u0430\u0441 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0431\u0440\u0451\u0432\u043d\u0430. \u0412\u0435\u0434\u044c \u0432 \u0442\u043e\u043c \u0432\u0438\u0434\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0410\u0442\u0430\u043a\u0438\\\u0441\u0431\u043e\u0440\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u043b\u0430 \u0431\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a. \u041c\u0435\u0447\u0438 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0430\u0442\u0430\u043a\u0438\\\u0441\u0431\u043e\u0440\u0430:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\"> \/* \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u043c\u0435\u0442\u0430\u043d\u0438\u044f \u043c\u0435\u0447\u0430 *\/     [SerializeField] \tprivate GameObject swordPref; \/\/ \u041f\u0440\u0435\u0444\u0430\u0431 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0447\u0430 \t[SerializeField] \tprivate Transform instSword; \/\/ \u041e\u0442\u043a\u0443\u0434\u0430 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0435\u0444\u0430\u0431 \u043c\u0435\u0447\u0430 \t[SerializeField] \tprivate float swordSpeed; \/\/ \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0451\u0442\u0430 \u043c\u0435\u0447\u0435\u0439 \tprivate float attackInBoxX, attackInBoxY; \/\/ \u0414\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043a\u0443\u0431\u0430 \/* \u041a\u043e\u043d\u0435\u0446 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f \u043c\u0435\u0442\u0430\u043d\u0438\u044f \u043c\u0435\u0447\u0435\u0439 *\/  \/\/ ED \u0437\u043d\u0430\u0447\u0438\u0442 EnemyDamage Collider2D[] ED = Physics2D.OverlapBoxAll(Hero.position, new Vector2(attackInBoxX, attackInBoxY), 12, lEnemy); \t\t\t{ \t\t\t\tif (ED.Length &gt; 0) \t\t\t\t{ \t\t\t\t\tif (InventoryOnHero.swordCount  == 0) \t\t\t\t\t{ \t\t\t\t\t\tDebug.Log(\"\u041d\u0435\u0447\u0435\u043c \u0441\u0442\u0440\u0435\u043b\u044f\u0442\u044c\"); \t\t\t\t\t} \t\t\t\t \t\t\t\t\tif (InventoryOnHero.swordCount &gt; 0) \t\t\t\t\t{ \t\t\t\t\t\tinstantiateSword(); \t\t\t\t\t\tInventoryOnHero.swordCount = InventoryOnHero.swordCount - 1; \t\t\t\t\t \t\t\t\t\t} \t\t\t\t\telse \t\t\t\t\t{ \t\t\t\t\t\tfor (int i = 0; i &lt; ED.Length; i++) \t\t\t\t\t\t{ \t\t\t\t\t\t\tED[i].GetComponent&lt;Enemy&gt;().Damage(1); \t\t\t\t\t\t} \t\t\t\t\t} \t\t\t\t} \t\t\t}<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043a\u043e\u0434\u0430? \u0421\u043f\u0435\u0440\u0432\u0430, \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0441\u0451, \u0447\u0442\u043e \u043f\u043e\u043f\u0430\u043b\u043e \u0432 \u043d\u0430\u0448 \u043a\u0443\u0431  <\/p>\n<pre><code class=\"cs\">Collider2D[] ED = Physics2D.OverlapBoxAll(Hero.position, new Vector2(attackInBoxX, attackInBoxY), lEnemy);<\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0432 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043e\u043d\u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u0442\u0435\u0445, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f OvelapCircleAll. \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u2014   <\/p>\n<pre><code class=\"cs\">Vector2(attackInBoxX, attackInBoxY)<\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0435\u0441\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432 \u043a\u043e\u043b\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0435 0, \u0442\u043e \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0447\u0435\u0439. \u0415\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0435\u0447\u0435\u0439 \u0440\u0430\u0432\u043d\u043e 0, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043c\u0435\u0442\u043e\u0434 <\/p>\n<pre><code class=\"cs\">ED[i].GetComponent&lt;Enemy&gt;().Damage(1);<\/code><\/pre>\n<p> \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u044d\u0442\u043e \u0431\u044b\u043b \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0443\u0434\u0430\u0440. \u0415\u0441\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 0, \u0442\u043e \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043c\u0435\u0447 \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0435\u0447\u0435\u0439 \u043d\u0430 1.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 instantiateSword();  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\"> private void instantiateSword()     { \t\tGameObject newArrow = Instantiate(swordPref) as GameObject; \t\tnewArrow.transform.position = instSword.transform.position; \t\tRigidbody2D rb = newArrow.GetComponent&lt;Rigidbody2D&gt;(); \t\tif (GameObject.Find(\"Hero\").GetComponent&lt;HeroScript&gt;().localScale.x &gt; 0) \t\t{ \t\t\trb.velocity = new Vector3(swordSpeed, 0, 0); \t\t} \t\telse \t\t{ \t\t\trb.velocity = new Vector3(-swordSpeed, 0, 0); \t\t\tnewArrow.transform.Rotate(0,0,-180); \t\t} \t}<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0440\u043e\u0448\u043e \u0447\u0438\u0442\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e, \u0442\u043e \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0443 \u043f\u043e\u0434\u0441\u043e\u043b\u043d\u0443\u0445\u0430. \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043a\u043e\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430 \u041b\u0443\u043a\u0430\u0441\u0430. \u0422\u043e \u0435\u0441\u0442\u044c, \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043e\u043d \u043d\u0430\u043b\u0435\u0432\u043e \u0438\u043b\u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043e:  <\/p>\n<pre><code class=\"cs\">(GameObject.Find(\"Hero\").GetComponent&lt;HeroScript&gt;().localScale.x &gt; 0)<\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u041b\u0443\u043a\u0430\u0441 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430\u043b\u0435\u0432\u043e, \u0442\u043e  <\/p>\n<pre><code class=\"cs\">rb.velocity = new Vector3(-swordSpeed, 0, 0); newArrow.transform.Rotate(0,0,-180);<\/code><\/pre>\n<p>  \u043c\u0435\u0447 \u043b\u0435\u0442\u0438\u0442 \u043d\u0430\u043b\u0435\u0432\u043e \u0438 \u0442\u0430\u043a \u0436\u0435 \u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 180 \u0433\u0440\u0430\u0434\u0443\u0441\u043e\u0432.<br \/>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<a href=\"https:\/\/video.tedomum.net\/videos\/watch\/cc36b48c-a3a5-4456-92d3-70a8a6a70c83\"> \u043f\u0440\u0435\u0432\u044c\u044e \u0440\u043e\u043b\u0438\u043a <\/a><\/p>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0434\u0430\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043c\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u043a\u0440\u044b\u043b\u0438 \u0435\u0449\u0451 1 \u043f\u0430\u0442\u0442\u0435\u0440\u043d:<\/p>\n<p>  <b><\/p>\n<h4>\u041e\u0431\u044a\u0435\u043a\u0442<\/h4>\n<p><\/b><br \/>  <i>\u043b\u044e\u0431\u0430\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c, \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0432 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0451 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u0412 \u0447\u0438\u0441\u043b\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432\u0445\u043e\u0434\u044f\u0442 \u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u0432\u0440\u0430\u0433\u0438, \u0431\u043e\u043d\u0443\u0441\u044b \u0438 \u0442.\u0434.<\/i><\/p>\n<p>  \u0425\u043e\u0442\u044f, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0431\u044b\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0440\u0430\u043d\u044c\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u0431\u044b\u043b \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u043e\u043d\u0441\u0442\u0440.<\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e 3 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430:  <\/p>\n<ul>\n<li> \u041d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c<\/li>\n<li> \u041c\u0435\u0445\u0430\u043d\u0438\u043a\u0430<\/li>\n<li> \u0411\u043e\u0441\u0441<\/li>\n<\/ul>\n<p>  <b>\u041c\u0435\u0445\u0430\u043d\u0438\u043a\u0430<\/b> \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0435\u0431\u0435, \u0447\u0442\u043e \u044f \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u0442\u043e, \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442 \u0432 \u044d\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, <b>\u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c<\/b>. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0435 \u044f \u0437\u0430\u0439\u043c\u0443\u0441\u044c \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435\u0439. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044f \u0445\u043e\u0447\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0440\u0435\u0442\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0442\u0451\u043c\u043d\u044b\u043c. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u0435\u0449\u0435\u0440\u0443 \u0438\u043b\u0438 \u043f\u043e\u0434\u0437\u0435\u043c\u0435\u043b\u044c\u0435. \u0421 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0432\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b.<\/p>\n<p>  <b>\u0411\u043e\u0441\u0441<\/b>! \u0422\u0430\u043a \u0436\u0435 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0432\u0438\u0448\u0435\u043d\u043a\u043e\u0439 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435. \u042f \u0445\u043e\u0447\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0451 \u043e\u0431\u043b\u0438\u0447\u044c\u0435.<\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043c\u043e\u044e \u0432\u0438\u0442\u0440\u0438\u043d\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 <a href=\"https:\/\/play.google.com\/store\/apps\/developer?id=%D0%9C%D0%B8%D1%80+%D0%BE%D0%B4%D0%BD%D0%BE%D0%B3%D0%BE+%D0%93%D0%B5%D1%80%D0%BE%D1%8F\">Google Play<\/a><\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u041b\u0443\u043a\u0430\u0441\u0430 \u0414\u0436\u043e\u043d\u0441\u0430 \u043d\u0430 <a href=\"https:\/\/sourceforge.net\/projects\/lucas-lones-adventure\/files\/\">sourceforge.net<\/a><\/p>\n<p>  \u0427\u0443\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435 \u0441\u0435\u0431\u044f \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u043c \u0438 \u043f\u0438\u0448\u0438\u0442\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0438\u043b\u0438 \u043c\u043d\u0435 \u043d\u0430 \u043f\u043e\u0447\u0442\u0443 worldofonehero@gmail.com.<br \/>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e \u0437\u0430 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435, \u0443\u0434\u0430\u0447\u0438.<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/460561\/\"> https:\/\/habr.com\/ru\/post\/460561\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0412 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 (<a href=\"https:\/\/habr.com\/ru\/post\/458846\/\">https:\/\/habr.com\/ru\/post\/458846\/<\/a>), \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u041f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0434\u043b\u044f 2D-\u0438\u0433\u0440 (<a href=\"https:\/\/habr.com\/ru\/post\/456152\/\">https:\/\/habr.com\/ru\/post\/456152\/<\/a> )  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-292269","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292269"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/292269\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}