15 lines
348 B
C#
15 lines
348 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class DirectionalLightForHTrace : MonoBehaviour
|
|
{
|
|
IEnumerator Start()
|
|
{
|
|
var gi = FindAnyObjectByType<HTraceWSGI.Scripts.HTraceWSGI>();
|
|
if (!gi) yield break;
|
|
gi.gameObject.SetActive(false);
|
|
yield return null;
|
|
gi.gameObject.SetActive(true);
|
|
}
|
|
}
|