{"id":262944,"date":"2015-08-05T12:39:01","date_gmt":"2015-08-05T08:39:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262944"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262944","title":{"rendered":"\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u0443\u0442\u0438 \u043a \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0432\u0438\u0436\u0443\u0449\u0438\u043c\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c \u0432 unity3d \u043d\u0430 C# \u0432 2d \u0438\u0433\u0440\u0435"},"content":{"rendered":"<p>             \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0438 \u043c\u043e\u044e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0432 unity3d.  <\/p>\n<h4>\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f 2\u0434 \u0438\u0433\u0440. \u0410 \u0435\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0443\u0442\u0438 \u043a \u0434\u0432\u0438\u0436\u0443\u0449\u0438\u043c\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c. \u041e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f \u0438 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0436\u0430\u043d\u0440\u043e\u0432 \u0438 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<ol>\n<li>\u0418\u0433\u0440\u044b \u0436\u0430\u043d\u0440\u0430 \u0422\u0414. \u0413\u0434\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 0 \u2014 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f, -1 \u2014 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f, -2 \u2014 \u043b\u043e\u0432\u0443\u0448\u043a\u0430 \u0438 \u0442.\u0434.;<\/li>\n<li>\u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0433\u0440\u044b, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u043e\u0438 \u0432 \u0441\u0435\u0440\u0438\u0438 \u0438\u0433\u0440 \u201c\u0413\u0435\u0440\u043e\u0438 \u041c\u0435\u0447\u0430 \u0438 \u041c\u0430\u0433\u0438\u0438\u201d;<\/li>\n<li>\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u044b;<\/li>\n<li>\u0428\u0430\u0448\u043a\u0438, \u0448\u0430\u0445\u043c\u0430\u0442\u044b, \u0437\u043c\u0435\u0439\u043a\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435.<\/li>\n<\/ol>\n<p>  <\/p>\n<h4>\u041e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438<\/h4>\n<p>  \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u0443\u0442\u0438, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0442\u0435\u043c\u044b \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0430\u0445, \u0437\u0430\u0434\u0430\u044e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u201c\u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u043f\u0443\u0442\u044c \u0434\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u201d. \u042f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0447\u0438\u043d \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435:  <\/p>\n<ol>\n<li>\u0414\u043b\u044f unity3d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0445 \u043f\u0443\u0442\u0435\u0439 \u0432 \u0432\u0438\u0434\u0435 \u0430\u0441\u0441\u0435\u0442\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435 \u0431\u0440\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0435, \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0441\u043b\u0443\u0447\u0430\u044e. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0435\u0441\u043b\u0438 \u0432 \u0438\u0433\u0440\u0435 \u043c\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0442\u043e \u043f\u043b\u043e\u0445\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u0418 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u0430\u0434\u0430\u0435\u0442 \u0435\u0441\u043b\u0438 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043c\u043d\u043e\u0433\u043e \u0438 \u043e\u043d\u0438 \u043c\u0435\u043d\u044f\u044e\u0442 \u0441\u0432\u043e\u0435 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435;<\/li>\n<li>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u2014 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u0433\u0440\u043e\u0439;<\/li>\n<li>\u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043d\u0435\u0442\u0443 \u0445\u043e\u0440\u043e\u0448\u0438\u0445, \u043f\u0440\u043e\u0441\u0442\u044b\u0445, \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0442\u0435\u043c\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432 unity3d.<\/li>\n<\/ol>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/h4>\n<p>  \u0415\u0441\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f S \u0438 \u0442\u043e\u0447\u043a\u0430 F, \u0434\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u0431\u0435\u0433\u0430\u044f \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u0439 \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u043c \u043f\u0443\u0442\u0435\u043c. \u0412\u043e\u043b\u043d\u043e\u0432\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445, \u043d\u043e \u0437\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0435\u0434 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0443\u0442\u0438 \u043a \u0434\u0432\u0438\u0436\u0443\u0449\u0438\u043c\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430\u0439\u0442\u0438 \u043f\u0443\u0442\u044c \u043a \u043d\u0435\u043c\u0443 \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f. \u041d\u043e \u0435\u0441\u043b\u0438 \u0436\u0435 \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0443\u0442\u044c \u043a \u043d\u0435\u043c\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0442\u0430\u043a\u0442, \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 Update().<\/p>\n<p>  \u0410 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432 \u0438\u0433\u0440\u0435 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u043e\u0442\u043d\u0438-\u0442\u044b\u0441\u044f\u0447\u0438 \u044e\u043d\u0438\u0442\u043e\u0432? \u0418 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u0443\u0442\u044c, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 Update()? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0435 500 \u043d\u0430 500, \u043f\u0440\u0438 30 \u043a\u0430\u0434\u0440\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 FindPath() 1000 * 30 = 30 000 \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043f\u043e\u043b\u0435, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u0440\u0442\u0430 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432 \u043c\u0430\u0442\u0440\u0438\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435.   <\/p>\n<pre> -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1  0  0  0   0  0  0  0  0  -1 -1  0  0  0   0  0  0  0  0  -1 -1  0  0  0   0  0  0  0  0  -1 -1  0  0 -1  -1 -1 -1 0  0  -1 -1  0  0  0   0  0  0  0  0  -1 -1  0  0  0   0  0  0  0  0  -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 <\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b:<br \/>  -1 \u2014 \u043d\u0435\u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a, \u0441\u0442\u0435\u043d\u0430 \u0438\u043b\u0438 \u0431\u0440\u0435\u0432\u043d\u043e.<br \/>  0 \u2014 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043e\u043a.<\/p>\n<h4>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c<\/h4>\n<p>  <i>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/i><\/p>\n<pre><code class=\"cs\">\u041f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 0 d := 0  <\/code><\/pre>\n<p>  <i>\u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432\u043e\u043b\u043d\u044b<\/i><\/p>\n<pre><code class=\"cs\">\u0426\u0418\u041a\u041b   \u0414\u041b\u042f \u043a\u0430\u0436\u0434\u043e\u0439 \u044f\u0447\u0435\u0439\u043a\u0438 loc, \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u043e\u0439 \u0447\u0438\u0441\u043b\u043e\u043c d     \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435  (\u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0444\u043e\u043d \u041d\u0435\u0439\u043c\u0430\u043d\u0430) \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u043d\u0435 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 \u0447\u0438\u0441\u043b\u043e\u043c d + 1   \u041a\u0426   d := d + 1 \u041f\u041e\u041a\u0410 (\u0444\u0438\u043d\u0438\u0448\u043d\u0430\u044f \u044f\u0447\u0435\u0439\u043a\u0430 \u043d\u0435 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u0430) \u0418 (\u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0432\u043e\u043b\u043d\u044b, \u0448\u0430\u0433 &lt; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u044f\u0447\u0435\u0435\u043a)  <\/code><\/pre>\n<p>  <i>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0443\u0442\u0438<\/i><\/p>\n<pre><code class=\"cs\">\u0415\u0421\u041b\u0418 \u0444\u0438\u043d\u0438\u0448\u043d\u0430\u044f \u044f\u0447\u0435\u0439\u043a\u0430 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u0430 \u0422\u041e   \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0444\u0438\u043d\u0438\u0448\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443   \u0426\u0418\u041a\u041b     \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u044f\u0447\u0435\u0439\u043a\u0443, \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u0443\u044e \u0447\u0438\u0441\u043b\u043e\u043c \u043d\u0430 1 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u044f\u0447\u0435\u0439\u043a\u0435     \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0451 \u043a \u043f\u0443\u0442\u0438   \u041f\u041e\u041a\u0410 \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u044f\u0447\u0435\u0439\u043a\u0430 \u2014 \u043d\u0435 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f   \u0412\u041e\u0417\u0412\u0420\u0410\u0422 \u043f\u0443\u0442\u044c \u043d\u0430\u0439\u0434\u0435\u043d \u0418\u041d\u0410\u0427\u0415   \u0412\u041e\u0417\u0412\u0420\u0410\u0422 \u043f\u0443\u0442\u044c \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/4e7\/a5b\/8d3\/4e7a5b8d32184b5bb0fded79556e53a5.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2e5\/252\/198\/2e5252198e344646b054327c7301ec56.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1e1\/6fa\/ca0\/1e16faca0b8d47e79d8f761be2f8941f.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1ef\/53d\/91d\/1ef53d91dbbc4769a77f98c3f3bfeed7.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/724\/868\/ad2\/724868ad28424a1483a812e149f6c7bb.png\"\/><\/p>\n<h4>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432 unity3d<\/h4>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u043c\u043e\u0435\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u0433\u0440\u044b. \u0415\u0441\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0438\u0433\u0440\u043e\u043a\u0430 \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430, \u0437\u0430\u0434\u0430\u0447\u0430 \u0432\u043e\u0438\u043d\u043e\u0432 \u043d\u0430\u0439\u0442\u0438 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430, \u0434\u043e\u0439\u0442\u0438 \u0434\u043e \u043d\u0435\u0433\u043e \u043e\u0431\u0445\u043e\u0434\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u043e\u0438\u043d\u043e\u0432 \u0438 \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u044f \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0435.<\/p>\n<ol>\n<li>\u0414\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u043d\u0430 \u043a\u043b\u0435\u0442\u043a\u0438 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0438\u0445. \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043f\u0435\u0440\u0432\u043e\u0439 \u043a\u043b\u0435\u0442\u043a\u0438 \u0440\u0430\u0432\u043d\u044b\u0435 (0,0), \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0439 \u0441\u043f\u0440\u0430\u0432\u0430 (0,1) \u0438 \u0442\u0434.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/de0\/121\/c61\/de0121c61bff413ebb80370f66440e65.png\"\/><\/li>\n<li> \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441 Battlefield.cs \u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043c \u0435\u0433\u043e \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0443 \u00ab\u043f\u043e\u043b\u0435\u00bb \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0430. <br \/> \n<div class=\"spoiler\"><b class=\"spoiler_title\">Battlefield.cs<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using UnityEngine; using System.Collections;  public class Battlefield2 : MonoBehaviour { \t \tpublic static int[,] battlefield; \/\/ \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \tpublic int enemyNumber = 6, playerNumber = 3; \/\/public \u0434\u043b\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440  \tpublic static int x, y; \/\/ \u0448\u0438\u0440\u0438\u043d\u0430 \u0438 \u0432\u044b\u0441\u043e\u0442\u0430 \u043f\u043e\u043b\u044f \t \tpublic GameObject enemyMilitiaman; \/\/\u043f\u0440\u0435\u0444\u0430\u0431 \u043e\u043f\u043e\u043b\u0447\u0435\u043d\u0446\u0430 \u0432\u0440\u0430\u0433\u0430 \tpublic GameObject swordsmanGO; \/\/\u043f\u0440\u0435\u0444\u0430\u0431 \u043c\u0435\u0447\u043d\u0438\u043a\u0430.         public static bool ready = false; \/\/\u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0443\u0442\u044c, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u044e\u043d\u0438\u0442\u043e\u0432 \u043d\u0430 \u043f\u043e\u043b\u0435.  \tvoid Start () { \t\tbattlefield = new int[,]{ \/\/ \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u043d\u0430\u0448\u0435\u0439 \u043b\u043e\u043a\u0430\u0446\u0438\u0438. 1 - \u0441\u0442\u0435\u043d\u0430. 0 - \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u043a\u043b\u0435\u0442\u043a\u0430 \t\t\t{1,1,1,1,1,1,1,1,1,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,0,0,0,0,0,0,0,0,1}, \t\t\t{1,1,1,1,1,1,1,1,1,1}}; \t\t \t\tsetEnemyPosition (enemyNumber); \/\/ \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0432\u0440\u0430\u0433\u043e\u0432 \u043d\u0430 \u043f\u043e\u043b\u0435 \t\tsetPlayerPosition (playerNumber); \/\/ \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0432\u043e\u0438\u043d\u043e\u0432 \u0438\u0433\u0440\u043e\u043a\u0430                 ready = true; \/\/ \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0443\u0442\u044c \t} \t \t\/\/ Update is called once per frame \tvoid Update () {  \t}  \tvoid setEnemyPosition(int numberEnemies){ \t\t\/\/\/\/\/\/ \t\t\/\/\/\/\/\/ \u0420\u0410\u0417\u041c\u0415\u0421\u0422\u0418\u0422\u0415 \u042e\u041d\u0418\u0422\u041e\u0412 \u041a\u0410\u041a \u0412\u0410\u041c \u041d\u0415\u041e\u0411\u0425\u041e\u0414\u0418\u041c\u041e, \u0412 \u0414\u0410\u041d\u041d\u041e\u041c \u041f\u0420\u0418\u041c\u0415\u0420\u0415 \u042d\u0422\u041e \u0411\u0423\u0414\u0415\u0422 1 \u042e\u041d\u0418\u0422 \u041d\u0410 (14,2) \t\t\/\/\/\/\/                 \/\/ \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430 \t\tGameObject go = Instantiate(enemyMilitiaman, new Vector3(14, 2, 10), Quaternion.identity) as GameObject;  \t\tbattlefield[14, 2] = 1; \/\/ \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u0430\u0440\u0442\u0443 \u043b\u043e\u043a\u0430\u0446\u0438\u0438, \u0447\u0442\u043e \u043a\u043b\u0435\u0442\u043a\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043e\u0438\u043d, \u0437\u0430\u043d\u044f\u0442\u0430. \t} \t \tvoid setPlayerPosition(int numberPlayerWarior){ \t\t\/\/\/\/\/\/ \t\t\/\/\/\/\/\/ \u0420\u0410\u0417\u041c\u0415\u0421\u0422\u0418\u0422\u0415 \u042e\u041d\u0418\u0422\u041e\u0412 \u041a\u0410\u041a \u0412\u0410\u041c \u041d\u0415\u041e\u0411\u0425\u041e\u0414\u0418\u041c\u041e, \u0412 \u0414\u0410\u041d\u041d\u041e\u041c \u041f\u0420\u0418\u041c\u0415\u0420\u0415 \u042d\u0422\u041e \u0411\u0423\u0414\u0415\u0422 1 \u042e\u041d\u0418\u0422 \u041d\u0410 (2,6) \t\t\/\/\/\/\/ \t\tGameObject go = Instantiate(swordsmanGO, new Vector3(2, 6, 10), Quaternion.identity) as GameObject; \t\tbattlefield[2, 6] = 1; \t} \t \tpublic static void printMatrix(){ \t\tstring arr = &quot;&quot;; \t\tfor (int i = 0; i &lt; x; i++) { \t\t\tfor (int j = 0; j &lt; y; j++) { \t\t\t\tarr += battlefield[i,j] + &quot;,&quot;; \t\t\t} \t\t\tarr += &quot;\\n&quot;; \t\t} \t\tprint (arr); \t} }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u043e\u0434 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0443 \u0432\u0430\u0441 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0412 \u043a\u043b\u0430\u0441\u0441\u0435 Battlefield \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0443 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 (\u043c\u0430\u0442\u0440\u0438\u0446\u0443), \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u043d\u0430\u0448\u0443 \u043b\u043e\u043a\u0430\u0446\u0438\u044e. \u0414\u0430\u043b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044e\u0442 \u044e\u043d\u0438\u0442\u043e\u0432 \u0438\u0433\u0440\u043e\u043a\u0430 \u0438 \u0432\u0440\u0430\u0433\u0430 \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435\u044e \u0412 \u044d\u0442\u0438\u0445 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u044f\u0447\u0435\u0439\u043a\u0443 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b\u0438 \u044e\u043d\u0438\u0442\u0430, \u0447\u0442\u043e \u043e\u043d\u0430 \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442\u0430 \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0435 \u043d\u0435\u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 0 \u043d\u0430 1. \u0412\u043e\u0442 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u043b\u0435\u0442\u043e\u043a \u0432 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435 \u0446\u0435\u043b\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u043e\u0442\u0441\u0447\u0435\u0442 \u0441 (0,0). \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0435\u0433\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u044f\u0447\u0435\u0439\u043a\u0438 \u0432 \u043c\u0430\u0442\u0440\u0438\u0446\u0435.  <\/li>\n<li>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441 \u043c\u0435\u0447\u043d\u0438\u043a\u0430 Swordsman.cs \u0438 \u043f\u043e\u0432\u0435\u0441\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u043f\u0440\u0435\u0444\u0430\u0431 \u043c\u0435\u0447\u043d\u0438\u043a\u0430<br \/> \n<div class=\"spoiler\"><b class=\"spoiler_title\">Swordsman.cs<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using UnityEngine; using System.Collections; using System;   public class Swordsman2 : Warrior { \t \tprivate Vector3 currentPosition; \tprivate Vector3 lastPosition; \tprivate bool ready = true; \tprivate bool readyAttack = true; \tprivate bool endBattle = false; \tprivate GameObject closestEnemy; \/\/\u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u0432\u0440\u0430\u0433 \tGameObject[] gos; \/\/ \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u0435\u0445 \u0432\u0440\u0430\u0433\u043e\u0432 \tprivate float waitMove; \/\/ \u0431\u0443\u0434\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u044e\u043d\u0438\u0442\u043e\u0432 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439  \tvoid Start () { \t\tcurrentPosition = transform.localPosition; \/\/ \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \t\tlastPosition = currentPosition; \/\/ \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u044e\u043d\u0438\u0442\u0430. \t\t\/\/ \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0441 \u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u044e\u043d\u0438\u0442 \t\twaitMove = UnityEngine.Random.Range (0.4f, 0.65f);  \t}  \tvoid Update () { \t\t\/\/ \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u044e\u043d\u0438\u0442\u044b \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435 \t\tif (Battlefield.ready) { \t\t\tif(ready){ \t\t\t\t\/\/\u0438\u0449\u0435\u043c \u0432\u0441\u0435\u0445 \u0432\u0440\u0430\u0433\u043e\u0432, \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u043c\u0435\u0442\u0438\u0432 \u0438\u0445 \u0442\u0435\u0433\u043e\u043c Enemy \t\t\t\tgos = GameObject.FindGameObjectsWithTag(&quot;Enemy&quot;); \t\t\t\tif(gos.Length == 0){ \t\t\t\t\tendBattle = true; \/\/ \u0435\u0441\u043b\u0438 \u0432\u0440\u0430\u0433\u043e\u0432 \u043d\u0435\u0442\u0443, \u0442\u043e \u043a\u043e\u043d\u0435\u0446 \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u044f \t\t\t\t\tprint (&quot;End Battle&quot;); \t\t\t\t} \t\t\t\t \t\t\t\t\/\/\u0435\u0441\u043b\u0456 \u0435\u0441\u0442\u044c \u0432\u0440\u0430\u0433\u0456, \u0442\u043e \u0445\u043e\u0434\u0456\u043c \t\t\t\tif(!endBattle){ \t\t\t\t\t\/\/\u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430 \u0438 \u0435\u0433\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \t\t\t\t\tGameObject goClosestEnemy = findClosestEnemy();  \t\t\t\t\tint targetX, targetY; \t\t\t\t\ttargetX = (int)goClosestEnemy.transform.localPosition.x; \t\t\t\t\ttargetY = (int)goClosestEnemy.transform.localPosition.y;  \t\t\t\t\tint[,] cMap = findWave(targetX, targetY); \/\/ \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043f\u0443\u0442\u044c \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430 \t\t\t\t\t \t\t\t\t\tif(!stopMove(targetX, targetY)) \/\/ \u0434\u0432\u0438\u0433\u0430\u0435\u043c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0446\u0435\u043b\u044c \u043d\u0435 \u043d\u0430 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0439 \u043a\u043b\u0435\u0442\u043a\u0435 \t\t\t\t\t\t\/\/ \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u0440\u043e\u0442\u0438\u043d\u0443 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \t\t\t\t\t\tStartCoroutine(move(cMap, targetX, targetY));  \t\t\t\t\t \t\t\t\t\tif(readyAttack){\/\/\u0430\u0442\u0430\u043a\u0443\u0435\u043c, \u0435\u0441\u043b\u0438 \u0434\u043e\u0448\u043b\u0438 \u0434\u043e \u0446\u0435\u043b\u0438 \t\t\t\t\t\tif(stopMove(targetX, targetY)){  \t\t\t\t\t\t\tStartCoroutine(attack()); \t\t\t\t\t\t} \t\t\t\t\t} \t\t\t\t}  \t\t\t\t\/\/ \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \t\t\t\tcurrentPosition = transform.localPosition;  \t\t\t\t\/\/\u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c, \u0447\u0442\u043e \u043a\u043b\u0435\u0442\u043a\u0430 \u0437\u0430\u043d\u044f\u0442\u0430 \u0432\u043e\u0438\u043d\u043e\u043c \t\t\t\tBattlefield.battlefield[(int)currentPosition.x, (int)currentPosition.y] = 1;  \t\t\t\t\/\/\u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043b\u0438\u0441\u044c, \u0442\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u0439 \u043a\u043b\u0435\u0442\u043a\u0438 \u043f\u0438\u0448\u0435\u043c, \u0447\u0442\u043e \u043e\u043d\u0430 \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u043b\u0430\u0441\u044c \t\t\t\tif (currentPosition != lastPosition) { \t\t\t\t\tBattlefield.battlefield[(int)lastPosition.x, (int)lastPosition.y] = 0; \t\t\t\t\tlastPosition = currentPosition; \/\/ \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0440\u0430\u0441\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \t\t\t\t} \t\t\t} \t\t} \t}  \t \tprivate IEnumerator attack(){ \t\treadyAttack = false; \/\/ \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u044e\u043d\u0438\u0442 \u0430\u0442\u0430\u043a\u043e\u0432\u0430 1 \u0440\u0430\u0437 \u0432 0.8 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \t\tyield return new WaitForSeconds(0.8f); \t\t\/\/\/\/\/\/\/\/ \t\t\/\/\/\/\/\/\/\/\u0420\u0415\u0410\u041b\u0418\u0417\u0423\u0415\u041c \u041c\u0415\u0422\u041e\u0414 \u0410\u0422\u0410\u041a\u0418 \u0412\u0420\u0410\u0413\u0410 \t\t\/\/\/\/\/\/\/\/ \t\treadyAttack = true; \t}  \t\/\/\/ &lt;summary&gt;\u0415\u0410\u041b\u0418\u0417\u0410\u0426\u0418\u042f \u0412\u041e\u041b\u041d\u041e\u0412\u041e\u0413\u041e \u0410\u041b\u0413\u041e\u0420\u0418\u0422\u041c\u0410 \t\/\/\/\t&lt;\/summary&gt; \t\/\/\/ &lt;param name=&quot;cMap&quot;&gt;\u041a\u043e\u043f\u0438\u044f \u043a\u0430\u0440\u0442\u044b \u043b\u043e\u043a\u0430\u0446\u0438\u0438&lt;\/param&gt; \t\/\/\/ &lt;param name=&quot;targetX&quot;&gt;\u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0446\u0435\u043b\u0438 x&lt;\/param&gt; \t\/\/\/ &lt;param name=&quot;targetY&quot;&gt;\u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0446\u0435\u043b\u0438 y&lt;\/param&gt; \tprivate IEnumerator move(int[,] cMap, int targetX, int targetY){ \t\tready = false;  \t\tint[] neighbors = new int[8]; \/\/\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0435\u0441\u043e\u0432 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043a\u043b\u0435\u0442\u043e\u043a \t\t\/\/ \u0431\u0443\u0434\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0432\u0435\u043a\u0442\u043e\u0440\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u043b\u0435\u0442\u043a\u0438 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0441\u044f \t\tVector3 moveTO = new Vector3(-1,0,10);   \t\t\/\/ \u0434\u0430 \u0434\u0430 \u0434\u0430, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0446\u0438\u043a\u043b for \t\tneighbors[0] = cMap[(int)currentPosition.x+1, (int)currentPosition.y+1]; \t\tneighbors[1] = cMap[(int)currentPosition.x, (int)currentPosition.y+1]; \t\tneighbors[2] = cMap[(int)currentPosition.x-1, (int)currentPosition.y+1]; \t\tneighbors[3] = cMap[(int)currentPosition.x-1, (int)currentPosition.y]; \t\tneighbors[4] = cMap[(int)currentPosition.x-1,(int) currentPosition.y-1]; \t\tneighbors[5] = cMap[(int)currentPosition.x, (int)currentPosition.y-1]; \t\tneighbors[6] = cMap[(int)currentPosition.x+1,(int) currentPosition.y-1]; \t\tneighbors[7] = cMap[(int)currentPosition.x+1,(int) currentPosition.y]; \t\tfor(int i = 0; i &lt; 8; i++){ \t\t\tif(neighbors[i] == -2) \t\t\t\t\/\/ \u0435\u0441\u043b\u0438 \u043a\u043b\u0435\u0442\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u043e\u0439, \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043d\u0435\u0435 \u044e\u043d\u0438\u0442 \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u043b \t\t\t\t\/\/ \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0431\u0440\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \t\t\t\t\/\/ \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e\u043c \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \t\t\t\tneighbors[i] = 99999;  \t\t} \t\tArray.Sort(neighbors); \/\/\u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441 \u043a\u043b\u0435\u0442\u043a\u0438 \u043a\u0443\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \t\t \t\t\/\/\u0438\u0449\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u043b\u0435\u0442\u043a\u0438 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u0435\u0441\u043e\u043c.  \t\tfor (int x = (int)currentPosition.x-1; x &lt;= (int)currentPosition.x+1; x++) { \t\t\tfor (int y = (int)currentPosition.y+1; y &gt;= (int)currentPosition.y-1; y--) { \t\t\t\tif(cMap[x,y] == neighbors[0]){ \t\t\t\t\t\/\/ \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u0435\u043a\u0442\u043e\u0440\u0443 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u043b\u0435\u0442\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c \u043d\u0430\u0448\u0435\u0433\u043e \u044e\u043d\u0438\u0442\u0430 \t\t\t\t\tmoveTO = new Vector3(x,y,10);  \t\t\t\t}  \t\t\t} \t\t} \t\t\/\/\u0435\u0441\u043b\u0438 \u043c\u044b \u043d\u0435 \u043d\u0430\u0448\u043b\u0438 \u043a\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u044e\u043d\u0438\u0442\u0430, \u0442\u043e \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438. \t\t\/\/ \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0432\u043e\u043a\u0440\u0443\u0433 \u044e\u043d\u0438\u0442\u0430, \u0432\u043e \u0432\u0441\u0435\u0445 8 \u043a\u043b\u0435\u0442\u043a\u0430\u0445, \u0443\u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u0434\u0440\u0443\u0433\u0438\u0435 \u044e\u043d\u0438\u0442\u044b \t\tif(moveTO == new Vector3(-1,0,10)) \t\t\tmoveTO = new Vector3(currentPosition.x, currentPosition.y, 10); \t\t \t\t\/\/\u0438 \u0443\u0440\u0430, \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u043c\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430\u0448\u0435\u0433\u043e \u044e\u043d\u0438\u0442\u0430 \t\t\/\/ \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u043d\u0430 1 \u043a\u043b\u0435\u0442\u043a\u0443 \u0431\u043b\u0438\u0436\u0435 \u043a \u0432\u0440\u0430\u0433\u0443 \t\ttransform.localPosition = moveTO;  \t\t\/\/\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443. \t\tyield return new WaitForSeconds(waitMove); \t\tready = true; \t}  \t\/\/\u0418\u0449\u043c\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0432\u0440\u0430\u0433\u0443 \t\/\/TargetX, TargetY - \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430 \tpublic int[,] findWave(int targetX, int targetY){ \t\tbool add = true; \/\/ \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 \t\t\/\/ \u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043f\u0438\u044e \u043a\u0430\u0440\u0442\u044b \u043b\u043e\u043a\u0430\u0446\u0438\u0438, \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u0435\u0435 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \t\tint[,] cMap = new int[Battlefield.X, Battlefield.Y]; \t\tint x, y, step = 0; \/\/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0448\u0430\u0433\u0430 \u0440\u0430\u0432\u043d\u043e 0 \t\tfor (x = 0; x &lt; Battlefield.x; x++) { \t\t\tfor (y = 0; y &lt; Battlefield.y; y++) { \t\t\t\tif(Battlefield.battlefield[x,y] == 1) \t\t\t\t\tcMap[x,y] = -2; \/\/\u0435\u0441\u043b\u0438 \u044f\u0447\u0435\u0439\u043a\u0430 \u0440\u0430\u0432\u043d\u0430 1, \u0442\u043e \u044d\u0442\u043e \u0441\u0442\u0435\u043d\u0430 (\u043f\u0438\u0448\u0438\u043c -2) \t\t\t\telse cMap[x,y] = -1; \/\/\u0438\u043d\u0430\u0447\u0435 \u0435\u0449\u0435 \u043d\u0435 \u0441\u0442\u0443\u043f\u0430\u043b\u0438 \u0441\u044e\u0434\u0430 \t\t\t} \t\t}  \t\t\/\/\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043e\u0442\u0441\u0447\u0435\u0442 \u0441 \u0444\u0438\u043d\u0438\u0448\u0430, \u0442\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u0435\u0439 \u0432\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u0443\u0442\u044c \t\tcMap[targetX,targetY] = 0;  \t\twhile (add == true) { \t\t\tadd = false; \t\t\tfor (x = 0; x &lt; Battlefield.x; x++) { \t\t\t\tfor (y = 0; y &lt; Battlefield.y; y++) { \t\t\t\t\tif(cMap[x,y] == step){ \t\t\t\t\t\t\/\/ \u0435\u0441\u043b\u0438 \u0441\u043e\u0441\u0435\u0434\u043d\u044f\u044f \u043a\u043b\u0435\u0442\u043a\u0430 \u043d\u0435 \u0441\u0442\u0435\u043d\u0430, \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0435\u0449\u0435 \u043d\u0435 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u0430 \t\t\t\t\t\t\/\/ \u0442\u043e \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0448\u0430\u0433\u0430 + 1 \t\t\t\t\t\t\/\/ \u043a\u0430\u043a \u043f\u0438\u0441\u0430\u043b \u0440\u0430\u043d\u0435\u0435, \u0431\u0435\u0440\u0435\u043c \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d \u041d\u0435\u0439\u043c\u0430\u043d\u0430, 4 \u043a\u043b\u0435\u0442\u043a\u0438 \t\t\t\t\t\tif(y - 1 &gt;= 0 && cMap[x, y - 1] != -2 && cMap[x, y - 1] == -1) \t\t\t\t\t\t\tcMap[x, y - 1] = step + 1; \t\t\t\t\t\tif(x - 1 &gt;= 0 && cMap[x - 1, y] != -2 && cMap[x - 1, y] == -1) \t\t\t\t\t\t\tcMap[x - 1, y] = step + 1; \t\t\t\t\t\tif(y + 1 &gt;= 0 && cMap[x, y + 1] != -2 && cMap[x, y + 1] == -1) \t\t\t\t\t\t\tcMap[x, y + 1] = step + 1; \t\t\t\t\t\tif(x + 1 &gt;= 0 && cMap[x + 1, y] != -2 && cMap[x + 1, y] == -1) \t\t\t\t\t\t\tcMap[x + 1, y] = step + 1; \t\t\t\t\t} \t\t\t\t} \t\t\t} \t\t\tstep++; \t\t\tadd = true; \t\t\tif(cMap[(int)transform.localPosition.x, (int)transform.localPosition.y] &gt; 0) \/\/\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \t\t\t\tadd = false; \t\t\tif(step &gt; Battlefield.X * Battlefield.Y) \/\/\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e, \u0435\u0441\u043b\u0438 \u0448\u0430\u0433\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043a\u043b\u0435\u0442\u043e\u043a \t\t\t\tadd = false;      \t\t} \t\treturn cMap; \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0434\u043b\u044f \u0432\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0443\u0442\u0438 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 move() \t}  \t\/\/ \u0435\u0441\u043b\u0438 \u0432 \u0441\u043e\u0441\u0434\u0435\u043d\u0435\u0439 \u043a\u043b\u0435\u0442\u043a\u0438 \u0435\u0441\u0442\u044c \u0432\u0440\u0430\u0433, \u0442\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u0441\u044f \tpublic bool stopMove(int targetX, int targetY){ \t\tbool move = false; \t\tfor (int x = (int)currentPosition.x-1; x &lt;= (int)currentPosition.x+1; x++) { \t\t\tfor (int y = (int)currentPosition.y+1; y &gt;= (int)currentPosition.y-1; y--) { \t\t\t\tif(x == targetX && y == targetY){ \t\t\t\t\tmove = true; \t\t\t\t} \t\t\t} \t\t} \t\treturn move; \t}  \t\/\/ \u0438\u0449\u043c\u0435\u043c \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0432\u0440\u0430\u0433\u0430 \tGameObject findClosestEnemy() \t{             \t\tfloat distance = Mathf.Infinity; \t\tVector3 position = transform.position; \t\tforeach (GameObject go in gos) \t\t{ \t\t\tfloat curDistance = Vector3.Distance(go.transform.position,position); \t\t\tif (curDistance &lt; distance) \t\t\t{ \t\t\t\tclosestEnemy = go; \t\t\t\tdistance = curDistance; \t\t\t} \t\t} \t\treturn closestEnemy; \t}  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a \u043a\u043e\u0434\u0443.<\/p>\n<p>  \u0412 \u043c\u0435\u0442\u043e\u0434\u0435 Update() \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0432\u0440\u0430\u0433, \u0442\u043e \u0438\u0449\u0435\u043c \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e. \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 findPath(), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0449\u0435\u0442 \u043f\u0443\u0442\u044c. \u0417\u0430 \u043d\u0438\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 move(), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430 1 \u043a\u043b\u0435\u0442\u043a\u0443 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432\u0440\u0430\u0433\u0430, \u0435\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442 \u0435\u0449\u0435 \u043d\u0435 \u0434\u043e\u0448\u0435\u043b \u0434\u043e \u0446\u0435\u043b\u0438. \u0415\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442 \u0443\u0436\u0435 \u0434\u043e\u0448\u0435\u043b \u0434\u043e \u0446\u0435\u043b\u0438, \u0442\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 attack().  <\/li>\n<\/ol>\n<h4>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/h4>\n<p>  \u041a\u0430\u043a \u044f \u0440\u0430\u043d\u044c\u0448\u0435 \u0438 \u043f\u0438\u0441\u0430\u043b, \u043c\u0435\u0442\u043e\u0434 findPath() \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u044e\u043d\u0438\u0442\u0443 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 Update(). \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0440\u0430\u0433\u0438 \u0442\u0430\u043a \u0436\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0438 \u044e\u043d\u0438\u0442\u044b \u0438\u0433\u0440\u043e\u043a\u0430. \u0418 \u0447\u0435\u0440\u0435\u0437 1 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0442\u0430\u043a\u0442, \u0432\u0440\u0430\u0433 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e, \u0438 \u0441\u0442\u0430\u0440\u044b\u0439 \u043f\u0443\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439.<\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043c\u044b \u043d\u0430\u0448\u043b\u0438 \u043f\u0443\u0442\u044c \u043a \u0432\u0440\u0430\u0433\u0443. \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043b\u0438\u0441\u044c \u0432 \u043a\u043b\u0435\u0442\u043a\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u0435\u0441\u043e\u043c. \u0412\u0440\u0430\u0433 \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u0441\u0432\u043e\u0435 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043c\u044b \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u043e\u0441\u0447\u0438\u0442\u0430\u043b\u0438 \u043f\u0443\u0442\u044c \u0434\u043e \u043d\u0435\u0433\u043e, \u0441\u043d\u043e\u0432\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043b\u0438\u0441\u044c \u0432 \u043a\u043b\u0435\u0442\u043a\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u0435\u0441\u043e\u0432.<\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043a\u043b\u0435\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u044e\u043d\u0438\u0442\u0443, \u0430 \u0432\u0435\u0441\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0443\u0442\u044c \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. \u0422\u043e\u0433\u0434\u0430 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0443\u0442\u044c \u0434\u043e \u0432\u0440\u0430\u0433\u0430. \u0410 \u043d\u0443\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u0443\u0437\u043d\u0430\u0442\u044c \u043d\u0430 \u043a\u0430\u043a\u0443\u044e \u0441\u043e\u0441\u0435\u0434\u043d\u044e\u044e \u043a\u043b\u0435\u0442\u043a\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044e\u043d\u0438\u0442\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0431\u044b\u043b \u0431\u043b\u0438\u0436\u0435 \u0432\u0441\u0435\u0433\u043e \u043a \u0432\u0440\u0430\u0433\u0443.<\/p>\n<p>  \u041e\u0431\u044a\u0435\u043a\u0442 \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0439\u0442\u0438 \u043d\u0430\u0437\u043e\u0432\u0435\u043c F. \u0410 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0449\u0435\u0442 \u043f\u0443\u0442\u044c \u043a F \u043d\u0430\u0437\u043e\u0432\u0435\u043c S. \u0412 unity3d \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442 S \u0434\u043e F.  <\/p>\n<pre><code class=\"cs\">float curDistance = Vector3.Distance(F.transform.position, S.transform.position); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u0432\u0441\u0435\u0433\u043e\u043b\u0438\u0448\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438\u0441\u044c \u043f\u043e \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u041c\u0443\u0440\u0430 (\u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c S 8-\u0438 \u043a\u043b\u0435\u0442\u043a\u0430\u043c). \u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0439 \u043a\u043b\u0435\u0442\u043a\u0438 \u0434\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 F \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u044f\u0447\u0435\u0439\u043a\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c.  <\/p>\n<pre><code class=\"cs\">        float[] neighbors = new int[9]; \t\tint n = 0; \t\tVector3 goTo; \t\tfor (int x = (int)currentPosition.x-1; x &lt;= (int)currentPosition.x+1; x++) { \t\t\tfor (int y = (int)currentPosition.y+1; y &gt;= (int)currentPosition.y-1; y--) { \t\t\t\tfloat curDistance = Vector3.Distance(new Vector3(x,y,0), S.transform.position); \t\t\t\tneighbors[n] = curDistance; \t\t\t} \t\t} <\/code><\/pre>\n<p>  \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 neighbors \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u0438\u043d\u0434\u0435\u043a\u0441 \u044f\u0447\u0435\u0439\u043a\u0438. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443 \u044f\u0447\u0435\u0439\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u044f\u0447\u0435\u0439\u043a\u0438, \u043a\u0443\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 S. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0434\u043e\u0439\u0434\u0435\u043c \u0434\u043e \u0446\u0435\u043b\u0438 F.<\/p>\n<h5>\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f<\/h5>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"\/\/www.youtube.com\/embed\/40E8R-i4j30?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe>             <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/264189\/\"> http:\/\/habrahabr.ru\/post\/264189\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0438 \u043c\u043e\u044e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0432 unity3d.  <\/p>\n<h4>\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f 2\u0434 \u0438\u0433\u0440. \u0410 \u0435\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0443\u0442\u0438 \u043a \u0434\u0432\u0438\u0436\u0443\u0449\u0438\u043c\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c. \u041e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f \u0438 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0436\u0430\u043d\u0440\u043e\u0432 \u0438 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:  <\/p>\n<ol>\n<li>\u0418\u0433\u0440\u044b \u0436\u0430\u043d\u0440\u0430 \u0422\u0414. \u0413\u0434\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 0 \u2014 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f, -1 \u2014 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f, -2 \u2014 \u043b\u043e\u0432\u0443\u0448\u043a\u0430 \u0438 \u0442.\u0434.;<\/li>\n<li>\u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0433\u0440\u044b, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u043e\u0438 \u0432 \u0441\u0435\u0440\u0438\u0438 \u0438\u0433\u0440 \u201c\u0413\u0435\u0440\u043e\u0438 \u041c\u0435\u0447\u0430 \u0438 \u041c\u0430\u0433\u0438\u0438\u201d;<\/li>\n<li>\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u044b;<\/li>\n<li>\u0428\u0430\u0448\u043a\u0438, \u0448\u0430\u0445\u043c\u0430\u0442\u044b, \u0437\u043c\u0435\u0439\u043a\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435.<\/li>\n<\/ol>\n<p>  <\/p>\n<h4>\u041e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438<\/h4>\n<p>  \u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u0443\u0442\u0438, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0442\u0435\u043c\u044b \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0430\u0445, \u0437\u0430\u0434\u0430\u044e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u201c\u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u043f\u0443\u0442\u044c \u0434\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u201d. \u042f \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0447\u0438\u043d \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435:  <\/p>\n<ol>\n<li>\u0414\u043b\u044f unity3d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0445 \u043f\u0443\u0442\u0435\u0439 \u0432 \u0432\u0438\u0434\u0435 \u0430\u0441\u0441\u0435\u0442\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u0438\u0442 \u043d\u0435 \u0431\u0440\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0435, \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0441\u043b\u0443\u0447\u0430\u044e. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0435\u0441\u043b\u0438 \u0432 \u0438\u0433\u0440\u0435 \u043c\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0442\u043e \u043f\u043b\u043e\u0445\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u0418 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u0430\u0434\u0430\u0435\u0442 \u0435\u0441\u043b\u0438 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043c\u043d\u043e\u0433\u043e \u0438 \u043e\u043d\u0438 \u043c\u0435\u043d\u044f\u044e\u0442 \u0441\u0432\u043e\u0435 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435;<\/li>\n<li>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u2014 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u0433\u0440\u043e\u0439;<\/li>\n<li>\u0412 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043d\u0435\u0442\u0443 \u0445\u043e\u0440\u043e\u0448\u0438\u0445, \u043f\u0440\u043e\u0441\u0442\u044b\u0445, \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0442\u0435\u043c\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u043e\u043b\u043d\u043e\u0432\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0432 unity3d.<\/li>\n<\/ol>\n<p>  <\/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-262944","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262944","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=262944"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262944\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}