예제 #1
0
 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");
     }
 }
예제 #2
0
 public void Shakeshake()
 {
     shake.shakeCamera(2f, 0.3f);
 }