Пример #1
0
 protected override void OnDeactivated(DeactivateEventArgs args)
 {
     if (teleportTrigger == TeleportTrigger.OnDeactivated)
     {
         StartCoroutine(FadeSequence(base.OnDeactivated, args));
     }
 }
 void TriggerReleased(DeactivateEventArgs args)
 {
     m_Animator.SetTrigger(k_AnimTriggerUp);
     m_TriggerDown     = false;
     m_TriggerHeldTime = 0f;
     m_BubbleParticleSystem.Stop();
 }
Пример #3
0
 private void EndFire(DeactivateEventArgs args)
 {
     if (firing != null)
     {
         StopCoroutine(firing);
     }
     recoil = originRecoil;
 }
Пример #4
0
 protected override void EndAction(DeactivateEventArgs args)
 {
     base.EndAction(args);
     Controller = args.interactor.GetComponent <XRController>();
     Controller.inputDevice.IsPressed(InputHelpers.Button.Trigger, out _isPressed);
     if (_isPressed)
     {
         return;
     }
     Weapon.ReleaseTrigger();
 }
Пример #5
0
 private void EndFire(DeactivateEventArgs args)
 {
     if (firing != null)
     {
         foreach (var i in muzzleFlashPrefab)
         {
             i.Stop();
         }
         StopCoroutine(firing);
     }
 }
Пример #6
0
 protected virtual void EndAction(DeactivateEventArgs args)
 {
 }
Пример #7
0
 protected override void EndAction(DeactivateEventArgs args)
 {
     base.EndAction(args);
 }
 private void TriggerReleased(DeactivateEventArgs arg0)
 {
     pressedTriger   = false;
     trigerPressTime = 0f;
     hologram.SetActive(false);
 }
 private void HandleXRUsageStopped(DeactivateEventArgs arguments)
 {
     EmitUsageStopped();
 }