soooo manyyy integrationsssssss
This commit is contained in:
@@ -15,9 +15,6 @@ public class DoorManager : MonoBehaviour, IDescribable
|
||||
|
||||
public string mod;
|
||||
|
||||
public Material blueMaterial;
|
||||
public Material redMaterial;
|
||||
|
||||
private Light focusLight;
|
||||
public int isfocussed;
|
||||
|
||||
@@ -28,6 +25,13 @@ public class DoorManager : MonoBehaviour, IDescribable
|
||||
|
||||
public CinemachineCamera deathCamera;
|
||||
public CinemachineSplineDolly deathSplineDolly;
|
||||
|
||||
public GameObject greenlight;
|
||||
public GameObject redlight;
|
||||
public GameObject bluelight;
|
||||
public GameObject yellowlight;
|
||||
|
||||
public Material openMaterial;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
@@ -42,20 +46,23 @@ public class DoorManager : MonoBehaviour, IDescribable
|
||||
|
||||
|
||||
|
||||
if (mod == "BLUE")
|
||||
if (mod.EndsWith("BLUE"))
|
||||
{
|
||||
// this.GetComponentInChildren<Renderer>().material = blueMaterial;
|
||||
indicatorLight.initialColor = Color.blue;
|
||||
bluelight.SetActive(true);
|
||||
}
|
||||
else if (mod == "RED")
|
||||
else if (mod.EndsWith("RED"))
|
||||
{
|
||||
// this.GetComponentInChildren<Renderer>().material = redMaterial;
|
||||
indicatorLight.initialColor = Color.red;
|
||||
redlight.SetActive(true);
|
||||
}
|
||||
else if (mod == "GREEN")
|
||||
else if (mod.EndsWith("GREEN"))
|
||||
{
|
||||
// this.GetComponentInChildren<Renderer>().material = redMaterial;
|
||||
indicatorLight.initialColor = Color.green;
|
||||
greenlight.SetActive(true);
|
||||
}
|
||||
else if (mod == "#ONE")
|
||||
{
|
||||
@@ -65,6 +72,10 @@ public class DoorManager : MonoBehaviour, IDescribable
|
||||
{
|
||||
manyDeath.gameObject.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
yellowlight.SetActive(true);
|
||||
}
|
||||
|
||||
focusLight = transform.FindChildRecursive("FocusLight").GetComponent<Light>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user