using System.Collections; using System.Collections.Generic; using UnityEngine; public class ActivateIndicator : MonoBehaviour { public IndicatorLight Indicator; // TODO: Add the missing Boolean variables needed below public bool IsActivator; public bool IsReversible; private void OnTriggerEnter(Collider other) { // TODO: Fill in the missing pieces of code so that an activator turns the indicator on. // Otherwise, it turns the indicator off. /* if(IsActivator) { Indicator.____ = ____; } else { Indicator.____ = ____; } */ // OPTIONAL: Change the behavior of the activator each time it is triggered if(IsReversible) { IsActivator = !IsActivator; } } }