Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="hit"></param>
        /// <param name="buttonDown"></param>
        /// <param name="buttonUp"></param>
        public void SetCustomInput(ref RaycastHit hit, bool buttonDown, bool buttonUp)
        {
            Vector2 screenPos = Camera.main.WorldToScreenPoint(hit.point);

            HitTestContext.CacheRaycastHit(Camera.main, ref hit);
            SetCustomInput(screenPos, buttonDown, buttonUp);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="hit"></param>
        /// <param name="buttonDown"></param>
        public void SetCustomInput(ref RaycastHit hit, bool buttonDown)
        {
            Vector2 screenPos = HitTestContext.cachedMainCamera.WorldToScreenPoint(hit.point);

            HitTestContext.CacheRaycastHit(HitTestContext.cachedMainCamera, ref hit);
            SetCustomInput(screenPos, buttonDown);
        }