Added screen shake upon successful hits of non-ability moves and fixed some animation bugs/warnings

This commit is contained in:
Gregory Campbell
2020-06-29 21:37:59 -04:00
parent a83d8d9ee4
commit d0122c2a14
23 changed files with 2030 additions and 21 deletions
+32
View File
@@ -0,0 +1,32 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShakeScript : MonoBehaviour
{
public Animator camAnim;
public void camShake(){
int shakeSelect = Random.Range(0, 4);
switch (shakeSelect)
{
case 0:
camAnim.SetTrigger("Shake1");
break;
case 1:
camAnim.SetTrigger("Shake2");
break;
case 2:
camAnim.SetTrigger("Shake3");
break;
case 3:
camAnim.SetTrigger("Shake4");
break;
}
}
}