using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ShowWaveAutoState : MonoBehaviour { [SerializeField] private RawImage TargetImage; void Update() { bool state = EnemySpawnManager.Instance.IsAutoPlaying; if (state) TargetImage.color = Color.green; else TargetImage.color = default; } }