Fix some bugs
This commit is contained in:
@@ -27,7 +27,7 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
if (mod == "SHORT")
|
||||
if (mod == "BLUE")
|
||||
{
|
||||
GetComponentInChildren<Renderer>().material = GuardMaterials.ByKey("OTHER");
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
{
|
||||
focusLight.intensity += Time.deltaTime * 100;
|
||||
}
|
||||
else if (isfocussed == 0 && focusLight.intensity > 30)
|
||||
else if (isfocussed == 0 && focusLight.intensity > 60)
|
||||
{
|
||||
focusLight.intensity -= Time.deltaTime * 100;
|
||||
}
|
||||
@@ -170,9 +170,9 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
|
||||
public string GetUnknownDescription()
|
||||
{
|
||||
if (mod == "SHORT")
|
||||
if (mod == "BLUE")
|
||||
{
|
||||
return "the short guard";
|
||||
return "the blue guard";
|
||||
}
|
||||
else if (mod == "HAT")
|
||||
{
|
||||
@@ -188,7 +188,7 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
}
|
||||
else
|
||||
{
|
||||
return "the plain guard";
|
||||
return "the red guard";
|
||||
}
|
||||
// add more modification here
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user