30 lines
701 B
C#
30 lines
701 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SphereLight3DGizmos : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject sphereLight3DGizmosGO;
|
|
private Renderer sphereLight3DGizmosRenderer;
|
|
|
|
void Start()
|
|
{
|
|
sphereLight3DGizmosRenderer = sphereLight3DGizmosGO.GetComponent<Renderer>();
|
|
}
|
|
|
|
public void UpdateSphereLight3DGizmosColor(Color color)
|
|
{
|
|
sphereLight3DGizmosRenderer.material.color = color;
|
|
}
|
|
|
|
public void EnableSphereLightGizmos()
|
|
{
|
|
sphereLight3DGizmosGO.SetActive(true);
|
|
}
|
|
|
|
public void DisableSphereLightGizmos()
|
|
{
|
|
sphereLight3DGizmosGO.SetActive(false);
|
|
}
|
|
}
|