public void shakeTime() { print("atack"); audioSource.clip = hitClip; audioSource.Play(); shake.shakeCamera(1f, 0.3f); player.vida--; if (player.vida == 0) { player.anim.SetBool("dead", true); // print("game over"); } }
public void Shakeshake() { shake.shakeCamera(2f, 0.3f); }