belter of an update
This commit is contained in:
@@ -43,9 +43,17 @@ public class GlobalStateManager : Singleton<GlobalStateManager>
|
||||
HighestLevel++;
|
||||
PlayerPrefs.SetInt("HighestLevel", HighestLevel);
|
||||
PlayerPrefs.Save();
|
||||
|
||||
//Reload game scene to start next level??
|
||||
SceneManager.LoadScene(1);
|
||||
|
||||
if (LevelIntended == levels.Count)
|
||||
{
|
||||
//win scene!!!
|
||||
SceneManager.LoadScene(2);
|
||||
}
|
||||
else
|
||||
{
|
||||
//Reload game scene to start next level??
|
||||
SceneManager.LoadScene(1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -35,6 +35,10 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
{
|
||||
GetComponentInChildren<Renderer>().material = GuardMaterials.ByKey("HAT");
|
||||
}
|
||||
else if (mod == "JOKER")
|
||||
{
|
||||
GetComponentInChildren<Renderer>().material = GuardMaterials.ByKey("JOKER");
|
||||
}
|
||||
|
||||
focusLight = transform.FindChildRecursive("FocusLight").GetComponent<Light>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user