Пример #1
0
    void Start()
    {
        _statsDetail = FindObjectOfType <StatsDetail>();
        var recognizer = new TKPanRecognizer();

        recognizer.gestureRecognizedEvent += (r) =>
        {
            transform.Rotate(transform.up, -0.1f * recognizer.deltaTranslation.x);
            _statsDetail.transform.localScale = Vector3.zero;
        };
        TouchKit.addGestureRecognizer(recognizer);
    }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        _cam = Camera.main;

        _statsDetail = FindObjectOfType <StatsDetail>();
    }