chchchchchaaaaangeeesssss
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -172,7 +172,7 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
|
||||
public string GetDescribeName()
|
||||
{
|
||||
return GetUnknownDescription().CapitalizeFirstLetter();
|
||||
return GetUnknownDescription().Replace("#","").CapitalizeFirstLetter();
|
||||
}
|
||||
|
||||
public string GetDescription()
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ public class ReloadLevelScript : MonoBehaviour
|
||||
|
||||
public void ReloadLevel()
|
||||
{
|
||||
AudioManager.Instance.PlaySound("WordAdd");
|
||||
SceneManager.LoadScene(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user