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); }
// Start is called before the first frame update void Start() { _cam = Camera.main; _statsDetail = FindObjectOfType <StatsDetail>(); }