using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ShaderControlPlay : MonoBehaviour { public ShaderControl shaderControl; private void OnEnable() { if (shaderControl == null) shaderControl = GetComponent(); shaderControl.Play(); } }