using UnityEngine; public class PlayerSound : MonoBehaviour { public static PlayerSound instance; //LIGHT private Light light_self; public bool use_mic = false; // Use this for initialization void Start () { instance = this; light_self = GetComponentInChildren (); } // Update is called once per frame void Update () { if (use_mic && this.gameObject.tag == "Player") { light_self.spotAngle = AM.i.GetLightAngle (); light_self.color = AM.i.GetLightColor (); } } }