Exemplo n.º 1
0
    private void Start()
    {
        // LightManager lightManager= GameObject.FindGameObjectWithTag("LightManager").GetComponent<LightManager>();
        _light = GetComponent <Light>();

        if (_light != null)
        {
            LightManager.AddLight(_light);
        }
    }