コード例 #1
0
 private void Handle(Vector3 contactPoint, HapticSender tactSender)
 {
     if (tactSender != null)
     {
         var targetCollider = GetComponent <Collider>();
         tactSender.Play(PositionTag, contactPoint, targetCollider);
     }
 }
コード例 #2
0
        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);
            }
        }