public override void OnReloadPressed(PlayerController player, Gun gun, bool manualReload) { if (gun.ClipShotsRemaining != gun.ClipCapacity) { if (!hasScreamed) { this.m_timer = 1.5f - BraveTime.DeltaTime; this.m_prevWaveDist = 0f; hasScreamed = true; Vector2 center = gun.sprite.WorldCenter; Exploder.DoDistortionWave(center, 0.5f, 0.04f, 20f, 1.5f); lastCenter = center; /*Vector3 vector = GameManager.Instance.MainCameraController.GetComponent<Camera>().WorldToViewportPoint(center.ToVector3ZUp(0f)); * Vector4 vec4 = new Vector4(vector.x, vector.y, distRadius, distIntensity); * * Material m_distortionMaterial = new Material(ShaderCache.Acquire("Brave/Internal/DistortionWave")); * m_distortionMaterial.SetVector("_WaveCenter", vec4); * Pixelator.Instance.RegisterAdditionalRenderPass(m_distortionMaterial); * StartCoroutine(HandleDistort(gun, m_distortionMaterial));*/ } } base.OnReloadPressed(player, gun, manualReload); }