using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering.Universal; public class GrowingLight : MonoBehaviour { Light2D l; public float speed = 0.5f; private void Awake() { l = GetComponent(); l.intensity = 0.3f; } void Update() { if(l.intensity < 1) { l.intensity += Time.deltaTime * speed; } l.shapeLightFalloffSize += Time.deltaTime * speed; } }