CameraShake.cs 433 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class CameraShake : MonoBehaviour {
  5. //public bool cameraShakeBool = true;
  6. public Animator CamerShakeAnimator;
  7. // Use this for initialization
  8. void Start () {
  9. }
  10. // Update is called once per frame
  11. void Update () {
  12. }
  13. public void ShakeCamera()
  14. {
  15. CamerShakeAnimator.SetTrigger("CameraShakeTrigger");
  16. }
  17. }