Exemplo n.º 1
0
        private bool checkHandNearString()
        {
            if (Vector3.Distance(rightHand.position, transform.TransformPoint(pullStart)) >
                attachRange)
            {
                return(false);
            }

            if (arrow != null)
            {
                startedPulling         = true;
                isPulling              = true;
                predictionLine.enabled = VHVRConfig.UseArrowPredictionGraphic();
                attackDrawPercentage   = 0;
            }

            return(pulling = true);
        }