Skip to content

Instantly share code, notes, and snippets.

@coxlin
Created June 19, 2019 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coxlin/f5c3fb8b3b1308584ef9f7dbe5628200 to your computer and use it in GitHub Desktop.
Save coxlin/f5c3fb8b3b1308584ef9f7dbe5628200 to your computer and use it in GitHub Desktop.
Light index script
using UnityEngine;
public class LightIndex : MonoBehaviour
{
[SerializeField]
private Transform[] _transformsToCheck;
public Transform[] TransformsToCheck => _transformsToCheck;
public float Current { private set; get; } = 0f;
public void SetIndex(float amount)
{
Current = amount;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment