void MakeItSo()
        {
            var go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (go == null)
            {
                return;
            }

            objectGrabbed.Value = theScript.IsGrabbed();
        }
示例#2
0
        void Update()
        {
            if (vrtkObject.IsGrabbed())
            {
                if (scratching && counter < 1)
                {
                    counter += Time.deltaTime;
                }

                if (scratching && counter > minScratchTime)
                {
                    TryScratch();
                }
            }
        }