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(); }
private void EndFire(DeactivateEventArgs args) { if (firing != null) { StopCoroutine(firing); } recoil = originRecoil; }
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(); }
private void EndFire(DeactivateEventArgs args) { if (firing != null) { foreach (var i in muzzleFlashPrefab) { i.Stop(); } StopCoroutine(firing); } }
protected virtual void EndAction(DeactivateEventArgs args) { }
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(); }