comment pass
This commit is contained in:
@@ -3,13 +3,23 @@ using UnityEngine;
|
||||
|
||||
namespace EscapeRoomEngine.Desert.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// A general component for controlling the emission of an object.
|
||||
/// </summary>
|
||||
public class Emission : MonoBehaviour
|
||||
{
|
||||
private static readonly int EmissionColorNameID = Shader.PropertyToID("_EmissionColor");
|
||||
|
||||
[Tooltip("The colour of the emission.")]
|
||||
[ColorUsage(false, true)]
|
||||
public Color color;
|
||||
[BoxGroup("Internal")] [Required]
|
||||
public MeshRenderer emissionRenderer;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the emission is on.
|
||||
/// </summary>
|
||||
internal bool active;
|
||||
[ColorUsage(false, true)] public Color color;
|
||||
[BoxGroup("Internal")] [Required] public MeshRenderer emissionRenderer;
|
||||
|
||||
private bool _previousActive;
|
||||
private Color _previousColor;
|
||||
|
||||
Reference in New Issue
Block a user