void MakeItSo() { var go = Fsm.GetOwnerDefaultTarget(gameObject); if (go == null) { return; } objectGrabbed.Value = theScript.IsGrabbed(); }
void Update() { if (vrtkObject.IsGrabbed()) { if (scratching && counter < 1) { counter += Time.deltaTime; } if (scratching && counter > minScratchTime) { TryScratch(); } } }