示例#1
0
    IEnumerator ImpactCoroutine(Vector2 relVelocity)
    {
        Time.timeScale = 0f;
        yield return(new WaitForSecondsRealtime(0.1f));

        Time.timeScale = 1f;
        shaker.Shake(0.3f, relVelocity, 10, 0.1f, -1, new Vector3(), 0.1f, true);
    }
示例#2
0
 public void ShakeAttack()
 {
     m_ProCamera2DShake.Shake(0);
 }
 public void landingSound()
 {
     shakeCamera.Shake(0);
     audio.clip = hitwall_Audio;
     audio.Play();
 }
示例#4
0
 public void Shaking()
 {
     shakingCamera.Shake(0);
 }
示例#5
0
 void ScreamShake(int irrelevant)
 {
     shaker.Shake(duration, strength, vibrato, randomness, initialAngle, rotation, smoothness, false);
 }