summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Rendering/CustomLight.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Rendering/CustomLight.cs')
-rw-r--r--Assets/Scripts/Rendering/CustomLight.cs46
1 files changed, 0 insertions, 46 deletions
diff --git a/Assets/Scripts/Rendering/CustomLight.cs b/Assets/Scripts/Rendering/CustomLight.cs
deleted file mode 100644
index 404dee12..00000000
--- a/Assets/Scripts/Rendering/CustomLight.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class CustomLight : MonoBehaviour
-{
- // Start is called before the first frame update
- void OnEnable()
- {
- CustomLightRegistry.Instance.Register(this);
- }
-
- // Update is called once per frame
- void OnDisable()
- {
- CustomLightRegistry.Instance.Unregister(this);
- }
-}
-
-public class CustomLightRegistry : Singleton<CustomLightRegistry>
-{
- private List<CustomLight> m_Lights;
- public List<CustomLight> lights
- {
- get
- {
- if (m_Lights == null)
- m_Lights = new List<CustomLight>();
- return m_Lights;
- }
- }
-
- public void Register(CustomLight renderer)
- {
- if (!lights.Contains(renderer))
- {
- lights.Add(renderer);
- }
- }
-
- public void Unregister(CustomLight renderer)
- {
- lights.Remove(renderer);
- }
-
-} \ No newline at end of file