3DTD/Assets/Scripts/UI/ShowWaveAutoState.cs

20 lines
417 B
C#

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;
}
}