{"id":263413,"date":"2015-08-12T16:01:02","date_gmt":"2015-08-12T12:01:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=263413"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=263413","title":{"rendered":"\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440 \u043f\u043e\u0434 Android \u043d\u0430 Unity3D"},"content":{"rendered":"<p>             <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8e7\/69c\/e1b\/8e769ce1b7594c0991897f74b05c7b20.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0436\u0430\u043b\u0443\u0439, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u043d\u043e\u0432\u043e\u0433\u043e UI, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043b\u044f Android\u2019\u0430 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u043c\u043e\u0439 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445.<br \/>  \u041d\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u201cUI\u201d, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432 Unity 4.6 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0430 \u0436\u0438\u0437\u043d\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0440\u043e\u044f\u0441\u043d\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a Android\u2019\u0443.<\/p>\n<p>  \u0418\u0437 \u043f\u043b\u044e\u0441\u043e\u0432:<br \/>  -\u041c\u043e\u0449\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432<br \/>  -\u041a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445, \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u0443\u0447\u0443 \u043b\u0438\u0448\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b<br \/>  -\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u0435\u043d\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<br \/>  -\u0413\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0430 \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f (\u0431\u0430\u0437\u043e\u0432\u0430\u044f) \u2014 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0435\u0449\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Unity3D. \u0412\u0442\u043e\u0440\u0430\u044f \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441\u0430\u043c\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u0430 \u043f\u043e\u0434 Android.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0430\u044f<\/h2>\n<p>  1) \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0441\u0446\u0435\u043d\u0443 File &gt; New Scene.<\/p>\n<p>  2) \u0412 \u043f\u0430\u043f\u043a\u0435 \u201cAssets\u201d \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0435\u0449\u0435 \u0434\u0432\u0435 \u043f\u0430\u043f\u043a\u0438: \u201cScripts\u201d \u0438 \u201cSprites\u201d.<\/p>\n<p>  3) \u0414\u0430\u043b\u0435\u0435, \u0441\u043f\u0440\u0430\u0439\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u201cSprites\u201d.<\/p>\n<p>  \u0421\u043f\u0440\u0430\u0439\u0442\u044b:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/b2c\/a83\/6ac\/b2ca836ac6654d1c8aab5a15f5675bb0.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/de0\/ed9\/d63\/de0ed9d63aeb4b2c9c4b30107de97708.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ac5\/25b\/393\/ac525b3937df4e2ba29c505e292a6826.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/498\/aac\/364\/498aac3646484940a03096df06abb218.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c17\/f7b\/1d8\/c17f7b1d877b487cb5662573569eb552.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/199\/b67\/a58\/199b67a589a042e59163e215caa80d3d.png\" alt=\"image\"\/><\/p>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c Filter Mode \u043d\u0430 \u043f\u0443\u043d\u043a\u0442 \u201cPoint\u201d \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 \u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0443, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u0432 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0430\u0440\u0442\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/53d\/15f\/e82\/53d15fe822354040a1db46733abfa348.gif\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0441\u0446\u0435\u043d\u0443 \u0441\u043f\u0440\u0430\u0439\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430, \u043f\u0430\u0440\u0443 \u0441\u043f\u0440\u0430\u0439\u0442\u043e\u0432 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0438 \u0444\u043e\u043d(\u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432 \u0435\u0433\u043e \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0435). <\/p>\n<p>  \u0414\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/49a\/2a1\/436\/49a2a1436eda42609bccb9974e8021cf.gif\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0443 \u0442\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043a\u0430\u043a:Rigidbody2D,CircleCollider2D \u0438 \u0437\u0430\u043c\u043e\u0440\u043e\u0437\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u043e \u043e\u0441\u0438 Z.<br \/>  \u0412\u0441\u0435\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442: BoxCollider2D.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fb5\/0ec\/72a\/fb50ec72aea544e3a1e2a4b8333b2db4.gif\" alt=\"image\"\/><\/p>\n<p>  4) \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0430 \u0441\u0446\u0435\u043d\u0443 \u0442\u0440\u0438 Image\u2019\u0430 \u0447\u0435\u0440\u0435\u0437 GameObject &gt; UI &gt; Image.<\/p>\n<p>  \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043d\u0430\u0448 \u0431\u0443\u0434\u0443\u0449\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441(\u043a\u043d\u043e\u043f\u043a\u0438: \u0432\u043f\u0440\u0430\u0432\u043e, \u0432\u043b\u0435\u0432\u043e, \u043f\u0440\u044b\u0436\u043e\u043a).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/39d\/878\/d72\/39d878d725de4179b3f17a0aba428a60.gif\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0434\u0433\u043e\u043d\u044f\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0438 \u0438\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435:<\/p>\n<p>  Image\u2019\u0430\u043c \u0441\u043b\u0435\u0432\u0430 \u0441\u0442\u0430\u0432\u0438\u043c \u201c\u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0443\u201d \u043a \u043b\u0435\u0432\u043e\u043c\u0443 \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043a\u0440\u0430\u044e, \u0430 \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u2014 \u043a \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043d\u0438\u0436\u043d\u0435\u043c\u0443.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/339\/4a0\/f81\/3394a0f811a74dafbabc32288a57c6dd.gif\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e Image\u2019\u0430 \u0432 Source Image \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0439 \u0441\u043f\u0440\u0430\u0439\u0442.<\/p>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/342\/8b0\/ad4\/3428b0ad4d8c4420b8d07925c71b186c.gif\" alt=\"image\"\/><\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u043a\u043e\u043d\u0435\u0446 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438.<\/p>\n<p>  \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043c\u044b \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433\u0443 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043d\u043e\u043f\u043a\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c \u0432\u0442\u043e\u0440\u0430\u044f<\/h2>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443:<\/p>\n<p>  1) \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043f\u0430\u043f\u043a\u0435 \u201cScripts\u201d \u0438 \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e \u201cCharController\u201d (\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u043d\u0430 C#).<\/p>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u043a\u043e\u0434:  <\/p>\n<pre><code>using UnityEngine; using System.Collections;  public class CharController : MonoBehaviour {     public Rigidbody2D rb2d;     public float playerSpeed;     public float jumpPower;     public int directionInput;     public bool groundCheck;     public bool facingRight = true;   \tvoid Start ()      {         rb2d = GetComponent&lt;Rigidbody2D&gt;();  \t} \t \t \tvoid Update ()      {         if ((directionInput &lt; 0) && (facingRight))         {             Flip();         }          if ((directionInput &gt; 0) && (!facingRight))         {             Flip();         }         groundCheck = true; \t}      public void Move(int InputAxis)     {         directionInput = InputAxis;         rb2d.velocity = new Vector2(playerSpeed * directionInput, rb2d.velocity.y);     }      public void Jump(bool isJump)     {         isJump = groundCheck;                  if (groundCheck)         {                      rb2d.velocity = new Vector2(rb2d.velocity.x, jumpPower);         }              }      void Flip()     {         facingRight = !facingRight;         Vector3 theScale = transform.localScale;         theScale.x *= -1;         transform.localScale = theScale;     }   }   <\/code><\/pre>\n<p>  \u201c\u041f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u2014 \u0437\u0430\u043b\u043e\u0433 \u0443\u0441\u043f\u0435\u0445\u0430\u201d \u2014 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a \u0438 \u0435\u0441\u0442\u044c. \u041f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u044b\u0436\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430 \u0431\u044b\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 void\u2019\u044b.<br \/>  \u041f\u043e\u0432\u0435\u0441\u044c\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430. \u0421\u043a\u043b\u0435\u0438\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0432\u043c\u0435\u0441\u0442\u0435, \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0436\u0435\u0442 Event System.<\/p>\n<p>  2) \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0439\u0442\u0435 \u201c\u043a\u043d\u043e\u043f\u043a\u0438\u201d \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:\u201dleftButton\u201d,\u201drightButton\u201d,\u201djumpButton\u201d.<br \/>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Event Trigger.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/5c7\/944\/698\/5c7944698a54493284b271e41e6fa5b3.gif\" alt=\"image\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043d\u043e\u043f\u043a\u0435 \u201c\u0412\u043b\u0435\u0432\u043e\u201d \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 Event Trigger \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u2014 PointerDown \u0438 PointerExit.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/09a\/143\/1b3\/09a1431b36354a2ebb0d8d98bbf51827.gif\" alt=\"image\"\/><\/p>\n<p>  \u0412 PointerDown \u0438 PointerExit \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u044e, \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430(\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u0438\u0441\u0435\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442).\u041a\u043b\u0438\u043a\u0430\u0435\u043c \u043f\u043e \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c\u0443 \u043c\u0435\u043d\u044e \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442 \u201cCharController\u201d &gt; void \u201cMove(int)\u201d.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0e9\/617\/25c\/0e961725ca5d4d6b89006d79d893d1cd.gif\" alt=\"image\"\/><\/p>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u201c\u0412\u043f\u0440\u0430\u0432\u043e\u201d.<br \/>  \u041a\u043d\u043e\u043f\u043a\u0435 \u201c\u041f\u0440\u044b\u0436\u043e\u043a\u201d \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e PointerEnter &gt; CharController &gt; Jump(bool).<\/p>\n<p>  3) \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0443:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cfc\/330\/a98\/cfc330a9822e45429f781c8144f9b34f.gif\" alt=\"image\"\/><\/p>\n<p>  \u041a\u043d\u043e\u043f\u043a\u0435 \u201c\u0412\u043b\u0435\u0432\u043e\u201d:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/13d\/f84\/22a\/13df8422a3124567a1e13b9db5e07c7b.gif\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u201c\u0412\u043f\u0440\u0430\u0432\u043e\u201d \u0442\u043e\u0436\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 PointerDown, \u043d\u043e \u043d\u0430 \u201c1\u201d.<\/p>\n<p>  4) \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6f0\/405\/442\/6f0405442dbd4b9294cf44335c4c6954.gif\" alt=\"image\"\/><\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435!<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u201c\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0442 \u0410 \u0434\u043e \u042f\u201d \u043d\u0435\u043b\u044c\u0437\u044f, \u043d\u043e \u0434\u0443\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0449\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Android\u2019\u0430. \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  P.S \u0411\u0443\u0434\u0443 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0434 \u0441\u043e\u0432\u0435\u0442\u0430\u043c \u0438 \u043a\u0440\u0438\u0442\u0438\u043a\u0435.             <\/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\/264611\/\"> http:\/\/habrahabr.ru\/post\/264611\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8e7\/69c\/e1b\/8e769ce1b7594c0991897f74b05c7b20.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0436\u0430\u043b\u0443\u0439, \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u043d\u043e\u0432\u043e\u0433\u043e UI, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043b\u044f Android\u2019\u0430 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u043c\u043e\u0439 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445.<br \/>  \u041d\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u201cUI\u201d, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432 Unity 4.6 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0430 \u0436\u0438\u0437\u043d\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0440\u043e\u044f\u0441\u043d\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a Android\u2019\u0443.<\/p>\n<p>  \u0418\u0437 \u043f\u043b\u044e\u0441\u043e\u0432:<br \/>  -\u041c\u043e\u0449\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432<br \/>  -\u041a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f\u0445, \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442 \u043a\u0443\u0447\u0443 \u043b\u0438\u0448\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b<br \/>  -\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u0435\u043d\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<br \/>  -\u0413\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438  <\/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-263413","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263413","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=263413"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263413\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}