Project_WL/Assets/Script/UI/GameUIEditor.cs

19 lines
396 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class GameUIEditor : MonoBehaviour
{
#if UNITY_EDITOR
public eGameMode CurUIMode, ChangeUIMode;
void Update()
{
if (CurUIMode != ChangeUIMode)
{
CurUIMode = ChangeUIMode;
GetComponent<GameUI>().Set_UI(CurUIMode);
}
}
#endif
}