Пример #1
0
    private void FixedUpdate()
    {
#if UNITY_ANDROID
        if (Input.touchCount > 0)
        {
            Touch touch = Input.GetTouch(0);
            Debug.Log(touch.deltaPosition);
            text.text = touch.deltaPosition.ToString();
            transform.Translate(touch.deltaPosition * speed * Time.fixedDeltaTime);
            fcs.Shot();
        }
#endif
    }