Start to integrate the artwork
This commit is contained in:
@@ -15,17 +15,22 @@ public class DoorManager : MonoBehaviour, IDescribable
|
||||
|
||||
private Light focusLight;
|
||||
public int isfocussed;
|
||||
|
||||
private LightFlickerer indicatorLight;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
indicatorLight = transform.FindChildRecursive("IndicatorLight").GetComponent<LightFlickerer>();
|
||||
if (mod == "BLUE")
|
||||
{
|
||||
this.GetComponentInChildren<Renderer>().material = blueMaterial;
|
||||
// this.GetComponentInChildren<Renderer>().material = blueMaterial;
|
||||
indicatorLight.initialColor = Color.blue;
|
||||
}
|
||||
else if (mod == "RED")
|
||||
{
|
||||
this.GetComponentInChildren<Renderer>().material = redMaterial;
|
||||
// this.GetComponentInChildren<Renderer>().material = redMaterial;
|
||||
indicatorLight.initialColor = Color.red;
|
||||
}
|
||||
|
||||
focusLight = transform.FindChildRecursive("FocusLight").GetComponent<Light>();
|
||||
|
||||
Reference in New Issue
Block a user