chchchchchaaaaangeeesssss

This commit is contained in:
WillJeynes
2026-08-30 09:39:21 +01:00
parent d36c0863a6
commit f673f53e60
23 changed files with 642 additions and 84 deletions
+4 -2
View File
@@ -206,15 +206,17 @@ public class CameraController : MonoBehaviour
float pushSpeed = 5f;
float previousPosition = -1f;
float counter = 0f;
bool done = false;
while (activeDoor != null && activeDolly != null && activeDolly.CameraPosition > previousPosition)
{
previousPosition = activeDolly.CameraPosition;
activeDolly.CameraPosition += pushSpeed * Time.deltaTime;
counter += Time.deltaTime;
if (counter > 4f && isDeathDoor)
if (counter > 4f && isDeathDoor && !done)
{
globalLight.SetActive(true);
AudioManager.Instance.PlaySound("WordAdd");
done = true;
}
yield return null;
}
+1 -1
View File
@@ -157,7 +157,7 @@ public class DoorManager : MonoBehaviour, IDescribable
{
if (!string.IsNullOrEmpty(mod))
{
return "The " + mod.ToLower() + " door";
return "The " + mod.Replace("#","").ToLower() + " door";
}
else
{
+1 -1
View File
@@ -172,7 +172,7 @@ public class GuardManager : MonoBehaviour, IDescribable
public string GetDescribeName()
{
return GetUnknownDescription().CapitalizeFirstLetter();
return GetUnknownDescription().Replace("#","").CapitalizeFirstLetter();
}
public string GetDescription()
+5
View File
@@ -99,6 +99,11 @@ public class LevelLoader : Singleton<LevelLoader>
//its late, i cant think straight
var offset = i == data.guards.Count - 1 ? -2 : 2;
offset = data.guards.Count == 1 ? 0 : offset;
if (data.globalmod == "HORSE")
{
offset *= 2;
}
guardinstance.transform.position = new Vector3(spacingGuards*(i+1)+offset, 0, -5);
+1
View File
@@ -17,6 +17,7 @@ public class ReloadLevelScript : MonoBehaviour
public void ReloadLevel()
{
AudioManager.Instance.PlaySound("WordAdd");
SceneManager.LoadScene(1);
}
}
+6 -1
View File
@@ -97,13 +97,18 @@ public class SpeechManager : Singleton<SpeechManager>
var item = textBuffer.Dequeue();
speaker = item.Value;
if (LevelLoader.Instance.GlobalModifier == "HORSE" && speaker == "GUARD")
if (LevelLoader.Instance.GlobalModifier == "HORSE" && speaker == "HORSE")
{
Debug.LogError("HORSE");
mainText.text = item.Key;
playerPanel.SetActive(false);
otherPanel.SetActive(false);
AudioManager.Instance.PlaySound("Horse");
playerPanel.SetActive(false);
otherPanel.SetActive(true);
otherPanel.transform.GetChild(0).gameObject.SetActive(false);
otherPanel.transform.GetChild(1).gameObject.SetActive(true);
otherPanel.transform.GetChild(2).gameObject.SetActive(false);
return;
}