Assets.Characters.Player.Scripts.PlayerMovement.Update C# (CSharp) Метод

Update() публичный Метод

public Update ( ) : void
Результат void
        void Update()
        {
            #if UNITY_EDITOR
            if (Input.GetMouseButtonUp(0))
            {
                if(!EventSystem.current.IsPointerOverGameObject(-1))
                    _canMove = true;
            }
            #endif
            if (Input.touchCount == 1 )
            {
                if (Input.GetTouch(0).phase == TouchPhase.Began)
                    if(!EventSystem.current.IsPointerOverGameObject(Input.GetTouch(0).fingerId))
                        _tap = true;

                if (Input.GetTouch(0).phase == TouchPhase.Moved)
                    _tap = false;

                if (Input.GetTouch(0).phase == TouchPhase.Ended)
                {
                    if (_tap)
                        _canMove = true;
                }
            }
        }