mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(FadeInOut): Added OnValidate
This commit is contained in:
parent
26bb7e4e09
commit
377f65a919
@ -18,6 +18,12 @@ public class FadeInOut : MonoBehaviour
|
|||||||
|
|
||||||
float step;
|
float step;
|
||||||
|
|
||||||
|
void OnValidate()
|
||||||
|
{
|
||||||
|
if (fadeImage == null)
|
||||||
|
fadeImage = GetComponentInChildren<Image>();
|
||||||
|
}
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
// Convert user-friendly setting value to working value
|
// Convert user-friendly setting value to working value
|
||||||
|
Loading…
Reference in New Issue
Block a user