private void Handle(Vector3 contactPoint, HapticSender tactSender) { if (tactSender != null) { var targetCollider = GetComponent <Collider>(); tactSender.Play(PositionTag, contactPoint, targetCollider); } }
public void Play(RaycastHit raycastHit) { var detect = raycastHit.collider.gameObject.GetComponent <HapticReceiver>(); var pos = PositionTag.Default; print(_tactSender); if (_tactSender != null && detect != null) { _tactSender.Play(pos, raycastHit); } }