Add tutorial system. Fox bugs raised by the group chat

This commit is contained in:
WillJeynes
2026-08-29 19:51:34 +01:00
parent 44c59c425c
commit fec7b392b5
23 changed files with 1075 additions and 124 deletions
+29 -7
View File
@@ -69,15 +69,15 @@ public class DoorManager : MonoBehaviour, IDescribable
// Update is called once per frame
void Update()
{
if (isfocussed == 2 && focusLight.intensity < 200)
if (isfocussed == 2 && focusLight.intensity < 250)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 1 && focusLight.intensity < 100)
else if (isfocussed == 1 && focusLight.intensity < 150)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 0 && focusLight.intensity > 60)
else if (isfocussed == 0 && focusLight.intensity > 100)
{
focusLight.intensity -= Time.deltaTime * 100;
}
@@ -123,24 +123,46 @@ public class DoorManager : MonoBehaviour, IDescribable
public string GetName()
{
return type;
if (type == "LIFE")
{
return "Door of Eden";
}
else if (type == "DEATH")
{
return "Door of Oblivion";
}
else
{
return "Door no one has ever tried";
}
}
public string GetDescribeName()
{
if (!string.IsNullOrEmpty(mod))
{
return mod;
return "The " + mod.ToLower() + " door";
}
else
{
return "normal door";
return "Normal door";
}
}
public string GetDescription()
{
return "Describe " + type;
if (type == "LIFE")
{
return "Leads to the next level of the castle.";
}
else if (type == "DEATH")
{
return "Leads to certain death, in some brutal fashion.";
}
else
{
return "Dunno whats behind it..";
}
}
public string GetUnknownDescription()