private void Start() { // LightManager lightManager= GameObject.FindGameObjectWithTag("LightManager").GetComponent<LightManager>(); _light = GetComponent <Light>(); if (_light != null) { LightManager.AddLight(_light); } }
private void Start() { // LightManager lightManager= GameObject.FindGameObjectWithTag("LightManager").GetComponent<LightManager>(); _light = GetComponent <Light>(); if (_light != null) { LightManager.AddLight(_light); } }