Created
June 19, 2019 17:08
-
-
Save coxlin/f5c3fb8b3b1308584ef9f7dbe5628200 to your computer and use it in GitHub Desktop.
Light index script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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