diff options
author | chai <chaifix@163.com> | 2021-08-31 19:07:21 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-08-31 19:07:21 +0800 |
commit | ffd1d5af496e0a0eff343b27c4f0f965bbbf79eb (patch) | |
tree | c5a8ae2116040ce8c483454b2e82093f247db341 /Assets/Art/Vfx/StylizedProjectilePack1/WebDemo/scripts/CameraShake.cs | |
parent | 476abf41a7357db0dd870f0d221f1a26481ab2bf (diff) |
*projectile
Diffstat (limited to 'Assets/Art/Vfx/StylizedProjectilePack1/WebDemo/scripts/CameraShake.cs')
-rw-r--r-- | Assets/Art/Vfx/StylizedProjectilePack1/WebDemo/scripts/CameraShake.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Assets/Art/Vfx/StylizedProjectilePack1/WebDemo/scripts/CameraShake.cs b/Assets/Art/Vfx/StylizedProjectilePack1/WebDemo/scripts/CameraShake.cs new file mode 100644 index 00000000..7ea397bf --- /dev/null +++ b/Assets/Art/Vfx/StylizedProjectilePack1/WebDemo/scripts/CameraShake.cs @@ -0,0 +1,24 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class CameraShake : MonoBehaviour {
+
+ //public bool cameraShakeBool = true;
+ public Animator CamerShakeAnimator;
+
+ // Use this for initialization
+ void Start () {
+
+ }
+
+ // Update is called once per frame
+ void Update () {
+
+ }
+
+ public void ShakeCamera()
+ {
+ CamerShakeAnimator.SetTrigger("CameraShakeTrigger");
+ }
+}
|