Add tutorial system. Fox bugs raised by the group chat
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user