Commit b8887a5f authored by gstuitje's avatar gstuitje
Browse files

Fixed exclamation marks not showing on characters correctly upon level up.

parent d38798a4
...@@ -55,11 +55,12 @@ public class CharacterInteractions : MonoBehaviour { ...@@ -55,11 +55,12 @@ public class CharacterInteractions : MonoBehaviour {
private IEnumerator checkLevelUp() { private IEnumerator checkLevelUp() {
yield return new WaitForSeconds(0.1f); yield return new WaitForSeconds(0.1f);
if (characterScript.getName() != "Ahava"){ LevelUpImage.gameObject.SetActive(GameManager.hasLeveledUp(characterScript.getName()));
/*if (characterScript.getName() != "Ahava"){
LevelUpImage.gameObject.SetActive(false); LevelUpImage.gameObject.SetActive(false);
} else { } else {
LevelUpImage.gameObject.SetActive(GameManager.hasLeveledUp(characterScript.getName())); LevelUpImage.gameObject.SetActive(GameManager.hasLeveledUp(characterScript.getName()));
} }*/
StopCoroutine(checkLevelUp()); StopCoroutine(checkLevelUp());
} }
......
...@@ -5,7 +5,7 @@ using UnityEngine; ...@@ -5,7 +5,7 @@ using UnityEngine;
public class GameManager : MonoBehaviour { public class GameManager : MonoBehaviour {
public static float AhavaLevel; public static float AhavaLevel;
public static float SilasLevel = 1f; public static float SilasLevel = 1.8f;
public static float SimonLevel = 1f; public static float SimonLevel = 1f;
public static float JohnLevel = 1f; public static float JohnLevel = 1f;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment