Added a weakpoint victory pop up for when a player beats an enemy with a weakpoint kill

This commit is contained in:
Gregory Campbell
2020-08-09 10:46:29 -04:00
parent 848ba2b7f6
commit 23b25183ab
6 changed files with 191 additions and 7 deletions
+3
View File
@@ -22,6 +22,7 @@ public class GMScript : MonoBehaviour
public GameObject EnemyShield;
public GameObject Victory;
public GameObject WeakPointVictory;
public GameObject GameOver;
public GameObject AttackStopSign;
public GameObject ShieldHit;
@@ -1194,10 +1195,12 @@ public class GMScript : MonoBehaviour
{
display.SetActive(true);
if(victory || enemyHealth > 0) WeakPointVictory.SetActive(true);
yield return new WaitForSeconds(3);
display.SetActive(false);
WeakPointVictory.SetActive(false);
level++;
PlayerPrefs.SetInt("Level", level);