public override void OnInteractionTrigger(InteractionModes mode) { Debug.Log("entrou"); playerController.SetObjectOnHand(this.gameObject, true); DuplicateSizeInVR(); OnFinish(); }
async public override void OnInteractionTrigger(InteractionModes mode) { if (CheckIfMinDistance()) { #if NESTLE_RV ReferenceManagerDependent.Instance.LongeFrame.SetActive(true); #endif Debug.Log("Too far to get object:" + Vector3.Distance(playerController.transform.position, this.transform.position)); return; } await new WaitForEndOfFrame(); handController.SetObjectOnHand(objectBeingPushed.gameObject, true); objectBeingPushed.enabled = true; objectBeingPushed.ActivateMover(this.gameObject, true); objectBeingPushed.OnExecuted += Finished; }