{"id":452986,"date":"2025-03-23T21:00:55","date_gmt":"2025-03-23T21:00:55","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=452986"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=452986","title":{"rendered":"<span>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 Unity<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u0432\u043e\u0435\u0439 \u0438\u0433\u0440\u044b, \u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0432\u043d\u044f\u0442\u043d\u044b\u0445 \u0433\u0430\u0439\u0434\u043e\u0432 \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0430\u0432\u0442\u043e\u0440\u044b \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0434\u0430 \u043b\u043e\u0433\u0438\u043a\u0443 UI, \u043d\u043e \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0438 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u201c\u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0435 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u201d, \u201c\u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u201d, \u201c\u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430\u043c \u043d\u0430 \u0441\u0446\u0435\u043d\u0435\u201d \u0438 \u0442.\u043f. \u041c\u043d\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e. \u0414\u043b\u044f \u043e\u043f\u044b\u0442\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435\u2026 \u043d\u043e \u0438, \u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0441\u0442\u043d\u044b\u043c\u0438, \u0434\u0435\u043d\u0435\u0433 \u044f \u0437\u0430\u0436\u0430\u043b \u043d\u0430 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0432 Unity \u043a\u0430\u043a \u0438 \u044f, \u043a\u0442\u043e \u0440\u0435\u0448\u0438\u043b \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443 \u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043e\u0433\u043e\u0432\u043e\u0440 \u043e\u0447\u043a\u0430: \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043c\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u044f\u0437\u044b\u043a python. \u0422\u0430\u043a \u0447\u0442\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u0448\u0443 \u0438\u0437\u0432\u0438\u043d\u0438\u0442\u044c \u0437\u0430 \u043d\u0435 \u0441\u0430\u043c\u044b\u0435 \u043b\u0443\u0447\u0448\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 C#&#8230; \u0434\u0430 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043f\u0440\u043e \u0447\u0438\u0441\u0442\u043e\u0442\u0443 \u043a\u043e\u0434\u0430, \u0430 \u043f\u0440\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443. \u041d\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435: \u0430 \u0447\u0442\u043e \u0437\u0430 \u0438\u0433\u0440\u0443 \u044f \u0434\u0435\u043b\u0430\u044e? \u0421\u044e\u0436\u0435\u0442\u043d\u043e\u0435 2\u0434 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0433\u0434\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u0431\u0440\u0430\u0442\u044c \u043d\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430\u043c\u0438, \u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439.<\/p>\n<p><strong>\u0427\u0430\u0441\u0442\u044c 1. \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b<\/strong><\/p>\n<p>\u0411\u0435\u0437 \u0447\u0435\u0442\u043a\u043e\u0433\u043e \u0422\u0417 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0425\u0417. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c, \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c. \u041d\u0430 \u043c\u043e\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435:<\/p>\n<ul>\n<li>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f, \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0431\u0435\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043e\u0442\u0432\u0435\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0446\u0435\u043d\u0430 &#8212; \u044d\u0442\u043e \u0433\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0433\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0446\u0435\u043d\u0430\u043c\u0438, \u0438\u0445 \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e. \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u0446\u0435\u043d\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p> \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u0435\u0441\u0442\u044c n \u0441\u0442\u0435\u0439\u0434\u0436\u0435\u0439. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u0435\u0439\u0434\u0436\u0435 m \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432. \u0417\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0435\u0439\u0434\u0436\u0438 &#8212; \u043d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u044e\u0436\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u0439\u0434\u0436, \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430 \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0443 \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0434\u0438\u0430\u043b\u043e\u0433;<\/p>\n<\/li>\n<li>\n<p>\u0414\u0438\u0430\u043b\u043e\u0433\u0438 3\u0445 \u0442\u0438\u043f\u043e\u0432: \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0439, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0438 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439;<\/p>\n<\/li>\n<li>\n<p>\u041e\u0434\u0438\u043d \u0434\u0438\u0430\u043b\u043e\u0433 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437: \u0438\u043c\u044f \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0433\u043e, \u0435\u0433\u043e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0438 \u0440\u0435\u043f\u043b\u0438\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u043c \u0431\u0430\u0431\u043b\u0435, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u0431\u0430\u0431\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0421\u044e\u0436\u0435\u0442\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0439 \u0441\u0442\u0435\u0439\u0434\u0436 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 +1.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0442\u0435\u043c, \u0432 \u043a\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430\u0445 \u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0445. \u0421\u043f\u0435\u0440\u0432\u0430 \u044f \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0444\u043e\u0440\u043c\u0430\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u043f\u0440\u044f\u043c \u0432 Unity, \u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u043b \u044d\u0442\u0443 \u0438\u0434\u0435\u044e. \u042d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0440\u0430\u0437\u0440\u0430\u0441\u0442\u0430\u044e\u0442\u0441\u044f, \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430\u043c \u0438 \u0442.\u0434.<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3f7\/c06\/c7c\/3f7c06c7c074256b59ef16e41d859754.png\" width=\"1080\" height=\"1144\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3f7\/c06\/c7c\/3f7c06c7c074256b59ef16e41d859754.png\"\/><\/figure>\n<div class=\"floating-image\">\n<p>\u0417\u0430\u0442\u0435\u043c \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u044d\u0439, \u0430 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0441 \u0447\u0435\u043c \u044f \u0438 \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0442? \u0422\u0430\u043a \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 \u0433\u0443\u0433\u043b \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 json\u2019\u044b. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u044f \u043f\u043e\u0434\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u044e \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0446\u0432\u0435\u0442\u0430\u043c\u0438 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0435, \u0432\u0442\u043e\u0440\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0435, \u043e\u0442\u043c\u0435\u0447\u0430\u044e \u0441\u0435\u0431\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0433\u0434\u0435 \u0441\u0442\u043e\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c\u0443 \u043d\u0430 \u0432\u044b\u0447\u0438\u0442\u043a\u0443, \u0443 \u043a\u043e\u0433\u043e \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 Unity. \u041d\u043e \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043b\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f, \u0442\u0430\u043a-\u0442\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0445\u043e\u0442\u044c SQLite.<\/p>\n<\/div>\n<p>\u0418\u0442\u0430\u043a, \u044f \u0441\u043e\u0437\u0434\u0430\u043b 3 \u0433\u0443\u0433\u043b \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<ol>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 &#8212; <code>ObjectsJson<\/code> (\u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432);<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0445 \u0441\u0442\u0435\u0439\u0434\u0436\u0435\u0439 &#8212; <code>PlotJson<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 &#8212; <code>DialoguesJson<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445 <code>ObjectsJson<\/code> \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>charId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>charName<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>sex<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Id \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 (\u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0435\u043a\u0441\u0442 (\u0418\u043c\u044f \u0434\u043b\u044f \u0438\u0433\u0440\u043e\u043a\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u043e\u043b \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 (\u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0431\u0430\u0431\u043b\u0430)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u0441\u0442\u0435\u0439\u0434\u0436\u0430\u0445 <code>PlotJson<\/code>:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>stageValue<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>charId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>dialogId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>objectName<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Id \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430. \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0441 1 \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 +1 \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u044e\u0436\u0435\u0442\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">Id \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0434\u0438\u0430\u043b\u043e\u0433<\/p>\n<\/td>\n<td>\n<p align=\"left\">Id \u0434\u0438\u0430\u043b\u043e\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0437 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0447\u0438\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f. \u0412 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 {charid: True}, \u0433\u0434\u0435 True &#8212; \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c, False &#8212; \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c (\u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0418 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0445 <code>DialoguesJson<\/code>:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>dialogId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>dialogTypes<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>charId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>replica<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>animation<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Id \u0434\u0438\u0430\u043b\u043e\u0433\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f \u0434\u0438\u0430\u043b\u043e\u0433\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">Id \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0435\u043a\u0441\u0442 \u0440\u0435\u043f\u043b\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0435\u043d \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044d\u0442\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0435\u043d\u0430<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041a\u0430\u043a \u044f \u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435, \u0434\u0438\u0430\u043b\u043e\u0433 \u0431\u044b\u0432\u0430\u0435\u0442 3\u0445 \u0442\u0438\u043f\u043e\u0432:<\/p>\n<pre><code class=\"cs\">public enum DialogTypesEnum { \u00a0\u00a0\u00a0repeated = 0, \/\/ \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u00a0\u00a0\u00a0onetime = -1, \/\/ \u041e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 \u00a0\u00a0\u00a0plotImportant = 1 \/\/ \u0421\u044e\u0436\u0435\u0442\u043d\u044b\u0439 }<\/code><\/pre>\n<p><strong>\u0427\u0430\u0441\u0442\u044c 2. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432<\/strong><\/p>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u044f \u043f\u0435\u0440\u0435\u0433\u043e\u043d\u044f\u044e \u0432 json\u2019\u044b. \u0421\u043f\u0435\u0440\u0432\u0430 \u044d\u0442\u043e \u0431\u044b\u043b \u043f\u0438\u0442\u043e\u043d\u044f\u0447\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AI \u043e\u043d \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043b \u0447\u0430\u0441\u0442\u044c\u044e C# \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.\u00a0<\/p>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432 json \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e python \u043a\u043e\u0434\u0430 (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430\u043c):<\/p>\n<pre><code class=\"python\">import json import gspread from oauth2client.service_account import ServiceAccountCredentials  GOOGLE_SHEET_ID = \"\" # \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043b\u0438\u0441\u0442\u0430 (\u0441\u0446\u0435\u043d\u044b) SHEET_NAME = \"Russian\"   def read_data_from_table_and_make_json(table_data):    data = {}    for row in table_data:        if row['charId']:            if row[\"charName\"] == \"\":                row[\"charName\"] = \"null\"            if row[\"sex\"] == \"\":                row[\"sex\"] = \"null\"            data[row['charId']] = {                \"objectType\": row[\"objectType\"],                \"charName\": row['charName'],                \"sex\": row['sex'],                \"visible\": row['visible']            }    json_data = json.dumps(data, ensure_ascii=False, indent=4)     with open(\"objects_test.json\", \"w\", encoding=\"utf-8\") as file:        json.dump(data, file, ensure_ascii=False, indent=4)  if __name__ == \"__main__\":    scope = ['https:\/\/www.googleapis.com\/auth\/spreadsheets',             'https:\/\/www.googleapis.com\/auth\/drive']    credentials = ServiceAccountCredentials.from_json_keyfile_name('credentials.json', scope)    client = gspread.authorize(credentials)     sheet = client.open_by_key(GOOGLE_SHEET_ID).worksheet(SHEET_NAME)    data = sheet.get_all_records()     read_data_from_table_and_make_json(data)   <\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0446\u0435\u043d\u044b (\u0442.\u0435. \u0432 \u0438\u0433\u0440\u0435 \u044f \u0432\u0438\u0436\u0443 \u0441\u0432\u0435\u0436\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0435 \u043f\u0435\u0440\u0435\u0433\u043e\u043d\u044f\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0440\u0443\u043a\u0430\u043c\u0438). \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0433\u0440\u0430 \u043e\u0444\u0444\u043b\u0430\u0439\u043d, \u044d\u0442\u0443 \u0444\u0438\u0447\u0443 \u043a \u0440\u0435\u043b\u0438\u0437\u0443 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043e\u0442\u043f\u0438\u043b\u0438\u0442\u044c. \u041f\u0443\u0442\u0438 \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u044f\u0437\u044b\u043a\u0438, \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0433\u0434\u0435 <code>BusStation<\/code> \u0438 <code>HomeScene<\/code> \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0446\u0435\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d16\/ce6\/06c\/d16ce606c284ac3bbc7d15cdfcd71dc9.png\" width=\"668\" height=\"448\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d16\/ce6\/06c\/d16ce606c284ac3bbc7d15cdfcd71dc9.png\"\/><\/figure>\n<p>\u041f\u0440\u043e \u044f\u0437\u044b\u043a\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0445\u043e\u0447\u0443 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c <strong>\u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e<\/strong> \u0434\u0438\u0430\u043b\u043e\u0433\u0438.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a json&#8217;\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043d\u0443\u0436\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435, \u0443\u0436\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0445 \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438. 3 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 3\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 (\u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0438 \u0441\u044e\u0436\u0435\u0442), 1 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u0446\u0435\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430.<\/p>\n<p><u>\u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u043c\u0438.<\/u><\/p>\n<p>1) \u041f\u0440\u043e\u0447\u043b\u0438 json \u0438\u0437 \u043d\u0443\u0436\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0438. \u0413\u0434\u0435 <code>configFileName<\/code> &#8212; \u0442\u0438\u043f \u043a\u043e\u043d\u0444\u0438\u0433\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 <code>string \"DialogConfig.json\"<\/code>:<\/p>\n<pre><code class=\"cs\">private TextAsset PrepareConfigJsonFile(string configFileName) {    string fullFilePath = Path.Combine(Application.dataPath, _additionalFolder, _currentLanguage, _currentSceneName, configFileName);    if (File.Exists(fullFilePath))    {        string allTextFromFile = File.ReadAllText(fullFilePath);        TextAsset fileToJsonFormat = new TextAsset(allTextFromFile);               if (fileToJsonFormat != null)        {            return fileToJsonFormat;        }        Debug.LogError($\"\u0424\u0430\u0439\u043b \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 json! {fileToJsonFormat}\");        return null;    }    Debug.LogError($\"\u0424\u0430\u0439\u043b\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442! {fullFilePath}\");    return null; }<\/code><\/pre>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0438\u0430\u043b\u043e\u0433\u0430:<\/p>\n<pre><code class=\"cs\">[System.Serializable] public class Dialogs {    public int dialogstatus;    public List&lt;ReplicaFromOneDialog&gt; phrases; }   [System.Serializable] public class ReplicaFromOneDialog { \/\/ \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043c \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043b\u043e\u0433\u0430    public string charId;    public string replica;    public string animation; }<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e <code>dialogId<\/code>:<\/p>\n<pre><code class=\"cs\">public Dialogs GetDialogDataOnDialogId(string dialogId)    \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u043f\u043e \u0435\u0433\u043e dialogId {    _phrasesList = new List&lt;ReplicaFromOneDialog&gt;();    _dialogData.dialogstatus = _allDialogDataFromJson[dialogId][\"dialogStatus\"].AsInt;    foreach (var phraseFromJson in _allDialogDataFromJson[dialogId][\"phrases\"].AsArray)    {        _onePhrase = new ReplicaFromOneDialog();        _onePhrase.charId = phraseFromJson.Value[\"charId\"].Value;        _onePhrase.replica = phraseFromJson.Value[\"replica\"].Value;        _onePhrase.animation = phraseFromJson.Value[\"animation\"].Value;        _phrasesList.Add(_onePhrase);    }     _dialogData.phrases = _phrasesList;     return _dialogData; }<\/code><\/pre>\n<p>\u042d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c\u0438, \u0434\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0441\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e.<\/p>\n<p><strong>\u0427\u0430\u0441\u0442\u044c 3. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438\u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438<\/strong><\/p>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b: \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u0438\u0433\u0440\u0443! \u0412 Unity \u0433\u043e\u0442\u043e\u0432\u043b\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0446\u0435\u043d\u044b. \u042d\u0442\u043e \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0435, \u0432\u0442\u043e\u0440\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0435 NPC \u0438 \u0441\u0430\u043c \u0438\u0433\u0440\u043e\u043a.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/60e\/70e\/923\/60e70e92341e4a95f91b51697c9c7aef.png\" width=\"632\" height=\"838\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/60e\/70e\/923\/60e70e92341e4a95f91b51697c9c7aef.png\"\/><\/figure>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0437\u043d\u0430\u044f ID \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 (\u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435) \u044f \u043c\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438 \u0433\u0435\u043d\u0435\u0440\u044f\u0442\u0441\u044f \u043d\u0430 \u0445\u043e\u0434\u0443 \u0438 \u0438\u0445 \u043a\u043e\u043b-\u0432\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e, \u043d\u043e \u043c\u043d\u0435 \u0438 \u0442\u0430\u043a \u043d\u043e\u0440\u043c.<\/p>\n<p>\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435 \u0432\u0438\u0441\u0438\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u0438\u0433\u0440\u043e\u043a \u0432\u043e\u0448\u0435\u043b \u0432 \u0435\u0433\u043e \u0437\u043e\u043d\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>OnTriggerEnter2D<\/code><strong> \u0438 <\/strong><code>OnTriggerExit2D<\/code>.<strong> <\/strong>\u0415\u0441\u043b\u0438 \u0438\u0433\u0440\u043e\u043a \u0432 \u0437\u043e\u043d\u0435, \u0442\u043e \u043d\u0430\u0434 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c \u0437\u0430\u0433\u043e\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u043a\u043e\u043d\u043a\u0430 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0430 \u0438\u0433\u0440\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u0434\u0438\u0430\u043b\u043e\u0433.<\/p>\n<p>\u041f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u0432 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0449\u0435\u043b\u043a\u0430\u0435\u0442 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u043d\u0430\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u043c. \u0412\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u043e \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u043c, \u043c\u043d\u043e\u0433\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u043c (\u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430) \u0438 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u043d\u0435\u043c. \u041e\u043d \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u0438\u043b\u044c \u0431\u0430\u0431\u043b\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d (\u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u043b\u0430 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0433\u043e);<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u0431\u0430\u0431\u043b \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0440\u043e\u0443\u0442\u0438\u043d\u0443;<\/p>\n<\/li>\n<li>\n<p> \u0421\u043c\u0435\u043d\u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0433\u043e;<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u0430\u0431\u043b\u0435, \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438 \u0442.\u043f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u043b\u0438\u043a\u0438.<\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0449\u0438\u0439 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 <code>stageValue<\/code><strong> <\/strong>\u0438\u0437<strong> <\/strong><code>PlotJson<\/code>. <\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0433\u0440\u043e\u043a \u043d\u0430\u0447\u0430\u043b \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c NPC \u043c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u043c \u0432\u0441\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0434\u0438\u0430\u043b\u043e\u0433\u0430:<\/p>\n<pre><code class=\"cs\">_plotContoroller.GetDialogIdOnCharId(_triggeredActiveZoneIndicator._currentCharId); _dialogController.ShowDialogUsingStatus();<\/code><\/pre>\n<pre><code class=\"cs\">public void ShowDialogUsingStatus()         {             GetDialogIdAndStatusOnPlotStage(); \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0441\u044e \u0438\u043d\u0444\u0443 \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0434\u0438\u0430\u043b\u043e\u0433\u0443                          \/\/ \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0443\u0436\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u0434\u0438\u0430\u043b\u043e\u0433, \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043b\u0438 \u043e\u043d \u0438 \u043f\u0440             if (_dialogViewer.IsDialogEnded() &amp;&amp; !_dialogViewer.IsDialogActive())             {                 GetDialogIdAndStatusOnPlotStage();             }              if (_dialogStatus is (int)DialogTypesEnum.onetime)             {                 _dialogViewer.DialogShowReplicas(_dialogId);                 if (_dialogViewer.IsDialogEnded() &amp;&amp; !_dialogViewer.IsDialogActive())                 {                     _objectsDisablerEnabler.ChangeObjectTriggerZoneByName(_triggeredActiveZoneIndicator._currentCharId, false);                 }             }              else if (_dialogStatus is (int)DialogTypesEnum.repeated)             {                 _dialogViewer.DialogShowReplicas(_dialogId);             }             else if (_dialogStatus is (int)DialogTypesEnum.plotImportant)             {                 _dialogViewer.DialogShowReplicas(_dialogId);                 if (_dialogViewer.IsDialogEnded() &amp;&amp; !_dialogViewer.IsDialogActive())                 {                     _plotController.ChangePlotStatus();                 }             }         }<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0433\u0440\u043e\u043a \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433, \u043e\u0431\u0449\u0438\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0441\u0442\u0435\u0439\u0434\u0436 \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d \u043d\u0430 1, \u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043d\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435:<\/p>\n<pre><code class=\"cs\">public void ChangePlotStatus() {    \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\/\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430    _objectsDisablerEnabler.ClearContainers();      _currentPlotStatus += 1; \/\/ \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u044e\u0436\u0435\u0442\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 1 \u0448\u0430\u0433 \u0432 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443      \/\/ \u041d\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0437\u0430\u043d\u043e\u0432\u043e, \u043d\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430    _objectsDisablerEnabler.UpdateStageData(_currentPlotStatus);    _objectsDisablerEnabler.ChangeObjectStatus(); }<\/code><\/pre>\n<p>\u0418 \u0442\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0430\u0442\u0441\u044f.<\/p>\n<p>\u0410 \u0447\u0442\u043e \u043f\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u0443? \u0412\u043e\u0442 \u0442\u0443\u0442 \u044f \u043d\u0435 \u0432\u0438\u0436\u0443 \u0441\u043c\u044b\u0441\u043b \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0433\u0430\u0439\u0434\u043e\u0432 \u0432 \u0441\u0435\u0442\u0438 \u043f\u043e\u043b\u043d\u043e. \u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0434\u0438\u0430\u043b\u043e\u0433 \u043d\u0430\u0434 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u043c \u0441 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043b\u0438\u0448\u0435\u0441\u0442\u0432:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b2b\/3ab\/c4f\/b2b3abc4f585a8f2f1c60e613dca352c.png\" width=\"1600\" height=\"406\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b2b\/3ab\/c4f\/b2b3abc4f585a8f2f1c60e613dca352c.png\"\/><\/figure>\n<p>\u041b\u043e\u0433\u0438\u043a\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441 \u0432\u0438\u0437\u0443\u0430\u043b\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0442\u0442\u0435\u0440\u043d MVC. \u041d\u0435 \u0432\u0438\u0436\u0443 \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0430\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435.<\/p>\n<p>\u0418 \u043e\u0431\u0449\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0441\u0432\u044f\u0437\u0435\u0439 \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f1c\/1f7\/4ba\/f1c1f74ba6bf81d7e82d97233b852caf.png\" width=\"1600\" height=\"1099\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f1c\/1f7\/4ba\/f1c1f74ba6bf81d7e82d97233b852caf.png\"\/><\/figure>\n<div class=\"embed_link\">\n<div class=\"embed__thumb\" style=\"background-image: url(&quot;https:\/\/static-website.miro.com\/miro-site-auth-assets\/og-image.png&quot;);\"><\/div>\n<div class=\"embed__caption\">\n<div class=\"embed__caption-title\"><span>Sign up | Miro | Online Whiteboard for Visual Collaboration<\/span><\/div>\n<p><a href=\"https:\/\/miro.com\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" class=\"embed__caption-host\">miro.com<\/a><\/div>\n<\/div>\n<p>\u041a\u0430\u043a \u0436\u0435 \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0432\u0441\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442? \u0415\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u0434\u043b\u044f \u0432\u0430\u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f:<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/67e031b66d3815ba95dba38c\" data-style=\"\" id=\"67e031b66d3815ba95dba38c\" width=\"\"><\/div>\n<p>\u0425\u043e\u0447\u0443 \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0434\u043d\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430! \u0411\u0435\u0437 \u0441\u043c\u0435\u043d\u044b \u044f\u0437\u044b\u043a\u043e\u0432, \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0438\u0432\u0435\u043d\u0442\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u043a. \u0422\u0435\u043c, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u0431\u043e\u043b\u044c\u0448\u0443\u0449\u0435\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e! \u041d\u0443 \u0438 \u0445\u043e\u0447\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043f\u043e\u0449\u0443 \u0432 \u0442\u0433 \u043a\u0430\u043d\u0430\u043b &#8212; <a href=\"https:\/\/t.me\/volnyiiBAM\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/volnyiiBAM<\/a> \u0438 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u0441\u0435\u0445 \u0442\u0430\u043c \u0432\u0438\u0434\u0435\u0442\u044c)<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><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\/articles\/893592\/\"> https:\/\/habr.com\/ru\/articles\/893592\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u0432\u043e\u0435\u0439 \u0438\u0433\u0440\u044b, \u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0432\u043d\u044f\u0442\u043d\u044b\u0445 \u0433\u0430\u0439\u0434\u043e\u0432 \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0430\u0432\u0442\u043e\u0440\u044b \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0434\u0430 \u043b\u043e\u0433\u0438\u043a\u0443 UI, \u043d\u043e \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u043b\u0438 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u201c\u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0435 \u0441\u0442\u0435\u0439\u0434\u0436\u0438\u201d, \u201c\u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u201d, \u201c\u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430\u043c \u043d\u0430 \u0441\u0446\u0435\u043d\u0435\u201d \u0438 \u0442.\u043f. \u041c\u043d\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e. \u0414\u043b\u044f \u043e\u043f\u044b\u0442\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435\u2026 \u043d\u043e \u0438, \u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0441\u0442\u043d\u044b\u043c\u0438, \u0434\u0435\u043d\u0435\u0433 \u044f \u0437\u0430\u0436\u0430\u043b \u043d\u0430 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0432 Unity \u043a\u0430\u043a \u0438 \u044f, \u043a\u0442\u043e \u0440\u0435\u0448\u0438\u043b \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443 \u0438 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043e\u0433\u043e\u0432\u043e\u0440 \u043e\u0447\u043a\u0430: \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043c\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u044f\u0437\u044b\u043a python. \u0422\u0430\u043a \u0447\u0442\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u0448\u0443 \u0438\u0437\u0432\u0438\u043d\u0438\u0442\u044c \u0437\u0430 \u043d\u0435 \u0441\u0430\u043c\u044b\u0435 \u043b\u0443\u0447\u0448\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 C#&#8230; \u0434\u0430 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043f\u0440\u043e \u0447\u0438\u0441\u0442\u043e\u0442\u0443 \u043a\u043e\u0434\u0430, \u0430 \u043f\u0440\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443. \u041d\u0443 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435: \u0430 \u0447\u0442\u043e \u0437\u0430 \u0438\u0433\u0440\u0443 \u044f \u0434\u0435\u043b\u0430\u044e? \u0421\u044e\u0436\u0435\u0442\u043d\u043e\u0435 2\u0434 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0433\u0434\u0435 \u044f \u0440\u0435\u0448\u0438\u043b \u0431\u0440\u0430\u0442\u044c \u043d\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0430\u043c\u0438, \u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439.<\/p>\n<p><strong>\u0427\u0430\u0441\u0442\u044c 1. \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b<\/strong><\/p>\n<p>\u0411\u0435\u0437 \u0447\u0435\u0442\u043a\u043e\u0433\u043e \u0422\u0417 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0425\u0417. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c, \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c. \u041d\u0430 \u043c\u043e\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435:<\/p>\n<ul>\n<li>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f, \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0431\u0435\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043e\u0442\u0432\u0435\u0442\u0430;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0446\u0435\u043d\u0430 &#8212; \u044d\u0442\u043e \u0433\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0433\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u0446\u0435\u043d\u0430\u043c\u0438, \u0438\u0445 \u0432\u0441\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e. \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u0446\u0435\u043d\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p> \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u0435\u0441\u0442\u044c n \u0441\u0442\u0435\u0439\u0434\u0436\u0435\u0439. \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0442\u0435\u0439\u0434\u0436\u0435 m \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432. \u0417\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0435\u0439\u0434\u0436\u0438 &#8212; \u043d\u0430 \u044d\u0442\u043e\u0439 \u0441\u0446\u0435\u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u044e\u0436\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u0439\u0434\u0436, \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430 \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0443 \u043d\u0430 \u0441\u0446\u0435\u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0434\u0438\u0430\u043b\u043e\u0433;<\/p>\n<\/li>\n<li>\n<p>\u0414\u0438\u0430\u043b\u043e\u0433\u0438 3\u0445 \u0442\u0438\u043f\u043e\u0432: \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0439, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u0438 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439;<\/p>\n<\/li>\n<li>\n<p>\u041e\u0434\u0438\u043d \u0434\u0438\u0430\u043b\u043e\u0433 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437: \u0438\u043c\u044f \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0433\u043e, \u0435\u0433\u043e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0438 \u0440\u0435\u043f\u043b\u0438\u043a\u0430;<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u043c \u0431\u0430\u0431\u043b\u0435, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u0431\u0430\u0431\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0421\u044e\u0436\u0435\u0442\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0439 \u0441\u0442\u0435\u0439\u0434\u0436 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 +1.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0442\u0435\u043c, \u0432 \u043a\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430\u0445 \u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0445. \u0421\u043f\u0435\u0440\u0432\u0430 \u044f \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0444\u043e\u0440\u043c\u0430\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u043f\u0440\u044f\u043c \u0432 Unity, \u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u043b \u044d\u0442\u0443 \u0438\u0434\u0435\u044e. \u042d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0440\u0430\u0437\u0440\u0430\u0441\u0442\u0430\u044e\u0442\u0441\u044f, \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430\u043c \u0438 \u0442.\u0434.<\/p>\n<figure class=\"bordered full-width\"><\/figure>\n<div class=\"floating-image\">\n<p>\u0417\u0430\u0442\u0435\u043c \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u044d\u0439, \u0430 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0441 \u0447\u0435\u043c \u044f \u0438 \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0442? \u0422\u0430\u043a \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 \u0433\u0443\u0433\u043b \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 json\u2019\u044b. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u044f \u043f\u043e\u0434\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u044e \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0446\u0432\u0435\u0442\u0430\u043c\u0438 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0435, \u0432\u0442\u043e\u0440\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0435, \u043e\u0442\u043c\u0435\u0447\u0430\u044e \u0441\u0435\u0431\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0433\u0434\u0435 \u0441\u0442\u043e\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c. \u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c\u0443 \u043d\u0430 \u0432\u044b\u0447\u0438\u0442\u043a\u0443, \u0443 \u043a\u043e\u0433\u043e \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 Unity. \u041d\u043e \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043b\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f, \u0442\u0430\u043a-\u0442\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0445\u043e\u0442\u044c SQLite.<\/p>\n<\/div>\n<p>\u0418\u0442\u0430\u043a, \u044f \u0441\u043e\u0437\u0434\u0430\u043b 3 \u0433\u0443\u0433\u043b \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<ol>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 &#8212; <code>ObjectsJson<\/code> (\u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432);<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0445 \u0441\u0442\u0435\u0439\u0434\u0436\u0435\u0439 &#8212; <code>PlotJson<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 &#8212; <code>DialoguesJson<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445 <code>ObjectsJson<\/code> \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>charId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>charName<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>sex<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Id \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 (\u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0435\u043a\u0441\u0442 (\u0418\u043c\u044f \u0434\u043b\u044f \u0438\u0433\u0440\u043e\u043a\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u043e\u043b \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 (\u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u0431\u0430\u0431\u043b\u0430)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u0441\u0442\u0435\u0439\u0434\u0436\u0430\u0445 <code>PlotJson<\/code>:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>stageValue<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>charId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>dialogId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>objectName<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Id \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430. \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0441 1 \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 +1 \u043f\u043e \u043c\u0435\u0440\u0435 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u044e\u0436\u0435\u0442\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">Id \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0434\u0438\u0430\u043b\u043e\u0433<\/p>\n<\/td>\n<td>\n<p align=\"left\">Id \u0434\u0438\u0430\u043b\u043e\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0417\u0434\u0435\u0441\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0437 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0447\u0438\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f. \u0412 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 {charid: True}, \u0433\u0434\u0435 True &#8212; \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c, False &#8212; \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0435\u0442 \u0431\u044b\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u043c (\u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0418 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u0445 <code>DialoguesJson<\/code>:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>dialogId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>dialogTypes<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>charId<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>replica<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>animation<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Id \u0434\u0438\u0430\u043b\u043e\u0433\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f \u0434\u0438\u0430\u043b\u043e\u0433\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">Id \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0435\u043a\u0441\u0442 \u0440\u0435\u043f\u043b\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0435\u043d \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044d\u0442\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0435\u043d\u0430<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041a\u0430\u043a \u044f \u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435, \u0434\u0438\u0430\u043b\u043e\u0433 \u0431\u044b\u0432\u0430\u0435\u0442 3\u0445 \u0442\u0438\u043f\u043e\u0432:<\/p>\n<pre><code class=\"cs\">public enum DialogTypesEnum { \u00a0\u00a0\u00a0repeated = 0, \/\/ \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u00a0\u00a0\u00a0onetime = -1, \/\/ \u041e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 \u00a0\u00a0\u00a0plotImportant = 1 \/\/ \u0421\u044e\u0436\u0435\u0442\u043d\u044b\u0439 }<\/code><\/pre>\n<p><strong>\u0427\u0430\u0441\u0442\u044c 2. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432<\/strong><\/p>\n<p>\u0422\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u044f \u043f\u0435\u0440\u0435\u0433\u043e\u043d\u044f\u044e \u0432 json\u2019\u044b. \u0421\u043f\u0435\u0440\u0432\u0430 \u044d\u0442\u043e \u0431\u044b\u043b \u043f\u0438\u0442\u043e\u043d\u044f\u0447\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AI \u043e\u043d \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043b \u0447\u0430\u0441\u0442\u044c\u044e C# \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f.\u00a0<\/p>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432 json \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e python \u043a\u043e\u0434\u0430 (\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430\u043c):<\/p>\n<pre><code class=\"python\">import json import gspread from oauth2client.service_account import ServiceAccountCredentials  GOOGLE_SHEET_ID = \"\" # \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043b\u0438\u0441\u0442\u0430 (\u0441\u0446\u0435\u043d\u044b) SHEET_NAME = \"Russian\"   def read_data_from_table_and_make_json(table_data):    data = {}    for row in table_data:        if row['charId']:            if row[\"charName\"] == \"\":                row[\"charName\"] = \"null\"            if row[\"sex\"] == \"\":                row[\"sex\"] = \"null\"            data[row['charId']] = {                \"objectType\": row[\"objectType\"],                \"charName\": row['charName'],                \"sex\": row['sex'],                \"visible\": row['visible']            }    json_data = json.dumps(data, ensure_ascii=False, indent=4)     with open(\"objects_test.json\", \"w\", encoding=\"utf-8\") as file:        json.dump(data, file, ensure_ascii=False, indent=4)  if __name__ == \"__main__\":    scope = ['https:\/\/www.googleapis.com\/auth\/spreadsheets',             'https:\/\/www.googleapis.com\/auth\/drive']    credentials = ServiceAccountCredentials.from_json_keyfile_name('credentials.json', scope)    client = gspread.authorize(credentials)     sheet = client.open_by_key(GOOGLE_SHEET_ID).worksheet(SHEET_NAME)    data = sheet.get_all_records()     read_data_from_table_and_make_json(data)   <\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0446\u0435\u043d\u044b (\u0442.\u0435. \u0432 \u0438\u0433\u0440\u0435 \u044f \u0432\u0438\u0436\u0443 \u0441\u0432\u0435\u0436\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0435 \u043f\u0435\u0440\u0435\u0433\u043e\u043d\u044f\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0440\u0443\u043a\u0430\u043c\u0438). \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0433\u0440\u0430 \u043e\u0444\u0444\u043b\u0430\u0439\u043d, \u044d\u0442\u0443 \u0444\u0438\u0447\u0443 \u043a \u0440\u0435\u043b\u0438\u0437\u0443 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043e\u0442\u043f\u0438\u043b\u0438\u0442\u044c. \u041f\u0443\u0442\u0438 \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u044f\u0437\u044b\u043a\u0438, \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0433\u0434\u0435 <code>BusStation<\/code> \u0438 <code>HomeScene<\/code> \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0446\u0435\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0440\u043e \u044f\u0437\u044b\u043a\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0445\u043e\u0447\u0443 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c <strong>\u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e<\/strong> \u0434\u0438\u0430\u043b\u043e\u0433\u0438.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a json&#8217;\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043d\u0443\u0436\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435, \u0443\u0436\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0445 \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438. 3 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 3\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 (\u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0438 \u0441\u044e\u0436\u0435\u0442), 1 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u0446\u0435\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430.<\/p>\n<p><u>\u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u043c\u0438.<\/u><\/p>\n<p>1) \u041f\u0440\u043e\u0447\u043b\u0438 json \u0438\u0437 \u043d\u0443\u0436\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0438. \u0413\u0434\u0435 <code>configFileName<\/code> &#8212; \u0442\u0438\u043f \u043a\u043e\u043d\u0444\u0438\u0433\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 <code>string \"DialogConfig.json\"<\/code>:<\/p>\n<pre><code class=\"cs\">private TextAsset PrepareConfigJsonFile(string configFileName) {    string fullFilePath = Path.Combine(Application.dataPath, _additionalFolder, _currentLanguage, _currentSceneName, configFileName);    if (File.Exists(fullFilePath))    {        string allTextFromFile = File.ReadAllText(fullFilePath);        TextAsset fileToJsonFormat = new TextAsset(allTextFromFile);               if (fileToJsonFormat != null)        {            return fileToJsonFormat;        }        Debug.LogError($\"\u0424\u0430\u0439\u043b \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 json! {fileToJsonFormat}\");        return null;    }    Debug.LogError($\"\u0424\u0430\u0439\u043b\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442! {fullFilePath}\");    return null; }<\/code><\/pre>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0438\u0430\u043b\u043e\u0433\u0430:<\/p>\n<pre><code class=\"cs\">[System.Serializable] public class Dialogs {    public int dialogstatus;    public List&lt;ReplicaFromOneDialog&gt; phrases; }   [System.Serializable] public class ReplicaFromOneDialog { \/\/ \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043c \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0438\u0430\u043b\u043e\u0433\u0430    public string charId;    public string replica;    public string animation; }<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e <code>dialogId<\/code>:<\/p>\n<pre><code class=\"cs\">public Dialogs GetDialogDataOnDialogId(string dialogId)    \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u043f\u043e \u0435\u0433\u043e dialogId {    _phrasesList = new List&lt;ReplicaFromOneDialog&gt;();    _dialogData.dialogstatus = _allDialogDataFromJson[dialogId][\"dialogStatus\"].AsInt;    foreach (var phraseFromJson in _allDialogDataFromJson[dialogId][\"phrases\"].AsArray)    {        _onePhrase = new ReplicaFromOneDialog();        _onePhrase.charId = phraseFromJson.Value[\"charId\"].Value;        _onePhrase.replica = phraseFromJson.Value[\"replica\"].Value;        _onePhrase.animation = phraseFromJson.Value[\"animation\"].Value;        _phrasesList.Add(_onePhrase);    }     _dialogData.phrases = _phrasesList;     return _dialogData; }<\/code><\/pre>\n<p>\u042d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c\u0438, \u0434\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0441\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e.<\/p>\n<p><strong>\u0427\u0430\u0441\u0442\u044c 3. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438\u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438<\/strong><\/p>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b: \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u0438\u0433\u0440\u0443! \u0412 Unity \u0433\u043e\u0442\u043e\u0432\u043b\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0446\u0435\u043d\u044b. \u042d\u0442\u043e \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0435, \u0432\u0442\u043e\u0440\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0435 NPC \u0438 \u0441\u0430\u043c \u0438\u0433\u0440\u043e\u043a.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0437\u043d\u0430\u044f ID \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 (\u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435) \u044f \u043c\u043e\u0433\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438 \u0433\u0435\u043d\u0435\u0440\u044f\u0442\u0441\u044f \u043d\u0430 \u0445\u043e\u0434\u0443 \u0438 \u0438\u0445 \u043a\u043e\u043b-\u0432\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e, \u043d\u043e \u043c\u043d\u0435 \u0438 \u0442\u0430\u043a \u043d\u043e\u0440\u043c.<\/p>\n<p>\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435 \u0432\u0438\u0441\u0438\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u0438\u0433\u0440\u043e\u043a \u0432\u043e\u0448\u0435\u043b \u0432 \u0435\u0433\u043e \u0437\u043e\u043d\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>OnTriggerEnter2D<\/code><strong> \u0438 <\/strong><code>OnTriggerExit2D<\/code>.<strong> <\/strong>\u0415\u0441\u043b\u0438 \u0438\u0433\u0440\u043e\u043a \u0432 \u0437\u043e\u043d\u0435, \u0442\u043e \u043d\u0430\u0434 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u043c \u0437\u0430\u0433\u043e\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u043a\u043e\u043d\u043a\u0430 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0430 \u0438\u0433\u0440\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u0434\u0438\u0430\u043b\u043e\u0433.<\/p>\n<p>\u041f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u0432 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0449\u0435\u043b\u043a\u0430\u0435\u0442 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u043d\u0430\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u043c. \u0412\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u043e \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u043c, \u043c\u043d\u043e\u0433\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u043c (\u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0435\u0439\u0434\u0436\u0430) \u0438 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0430\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u043d\u0435\u043c. \u041e\u043d \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u0438\u043b\u044c \u0431\u0430\u0431\u043b\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d (\u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u043b\u0430 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0433\u043e);<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u0431\u0430\u0431\u043b \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0440\u043e\u0443\u0442\u0438\u043d\u0443;<\/p>\n<\/li>\n<li>\n<p> \u0421\u043c\u0435\u043d\u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0433\u043e;<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u0430\u0431\u043b\u0435, \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430 \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438 \u0442.\u043f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u043b\u0438\u043a\u0438.<\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0449\u0438\u0439 \u0441\u044e\u0436\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 <code>stageValue<\/code><strong> <\/strong>\u0438\u0437<strong> <\/strong><code>PlotJson<\/code>. <\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0433\u0440\u043e\u043a \u043d\u0430\u0447\u0430\u043b \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c NPC \u043c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u043c \u0432\u0441\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0434\u0438\u0430\u043b\u043e\u0433\u0430:<\/p>\n<pre><code class=\"cs\">_plotContoroller.GetDialogIdOnCharId(_triggeredActiveZoneIndicator._currentCharId); _dialogController.ShowDialogUsingStatus();<\/code><\/pre>\n<pre><code class=\"cs\">public void ShowDialogUsingStatus()         {             GetDialogIdAndStatusOnPlotStage(); \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0441\u044e \u0438\u043d\u0444\u0443 \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0434\u0438\u0430\u043b\u043e\u0433\u0443                          \/\/ \u0410 \u0434\u0430\u043b\u044c\u0448\u0435 \u0443\u0436\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044d\u0442\u043e<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-452986","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452986","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=452986"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/452986\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=452986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=452986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}