Add sad and trick level. Fix pausing bug
This commit is contained in:
@@ -257,7 +257,10 @@ public class DialogManager : Singleton<DialogManager>
|
||||
//now get a response from the guard being questioned
|
||||
response = currentGuard.Answer(FullQuestion).ToRandomString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
var cdoor = LevelLoader.Instance.Doors.First((d) => d.type == "LIFE");
|
||||
response = response.Replace("CDOOR", cdoor.mod.Replace("#",""));
|
||||
|
||||
response = response.Replace("$", "");
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@ public class LevelLoader : Singleton<LevelLoader>
|
||||
data.doors.Shuffle();
|
||||
data.guards.Shuffle();
|
||||
|
||||
//the global modifier, refrenced everywhere
|
||||
GlobalModifier = data.globalmod;
|
||||
|
||||
//maybe in wrong place, idc at this point engine almost done
|
||||
//get parlor puzzles
|
||||
var parlorText = GlobalStateManager.Instance.parlorPuzzles.ToString();
|
||||
@@ -124,8 +127,6 @@ public class LevelLoader : Singleton<LevelLoader>
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
GlobalModifier = data.globalmod;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ public class PauseController : MonoBehaviour
|
||||
|
||||
public void GoBackToMenu(int intended)
|
||||
{
|
||||
TogglePause(false);
|
||||
GlobalStateManager.Instance.MenuIntended = intended;
|
||||
|
||||
SceneManager.LoadScene(0);
|
||||
|
||||
@@ -25,11 +25,11 @@ public class StatusManager : Singleton<StatusManager>
|
||||
|
||||
public void PopulatePanels()
|
||||
{
|
||||
PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList());
|
||||
PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList());
|
||||
PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList(),LevelLoader.Instance.GlobalModifier == "HIDE");
|
||||
PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList(), false);
|
||||
}
|
||||
|
||||
private void PopulatePanel(Transform panel, GameObject template, List<IDescribable> items)
|
||||
private void PopulatePanel(Transform panel, GameObject template, List<IDescribable> items, bool hide)
|
||||
{
|
||||
foreach (Transform child in panel)
|
||||
{
|
||||
@@ -43,8 +43,17 @@ public class StatusManager : Singleton<StatusManager>
|
||||
var titleMesh = obj.transform.FindChildRecursive("TITLE").GetComponent<TextMeshProUGUI>();
|
||||
var descMesh = obj.transform.FindChildRecursive("DESC").GetComponent<TextMeshProUGUI>();
|
||||
|
||||
titleMesh.text = item.GetName();
|
||||
descMesh.text = item.GetDescription();
|
||||
if (hide)
|
||||
{
|
||||
titleMesh.text = "???";
|
||||
descMesh.text = "???";
|
||||
}
|
||||
else
|
||||
{
|
||||
titleMesh.text = item.GetName();
|
||||
descMesh.text = item.GetDescription();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user