Files
SoulliesOfficial 50ee502684 完善
2026-02-13 09:22:11 -05:00

29 lines
793 B
C#

/// ---------------------------------------------
/// Behavior Designer
/// Copyright (c) Opsive. All Rights Reserved.
/// https://www.opsive.com
/// ---------------------------------------------
namespace Opsive.BehaviorDesigner.Samples
{
using UnityEngine;
/// <summary>
/// The entities sample scene can cause URP to crash. Require Unity 6.
/// </summary>
public class VersionCheck : MonoBehaviour
{
[Tooltip("A reference to the entity panel.")]
[SerializeField] protected GameObject m_EntityPanel;
/// <summary>
/// Sets the UI state.
/// </summary>
#if UNITY_6000_0_OR_NEWER
private void Awake()
{
gameObject.SetActive(false);
m_EntityPanel.SetActive(true);
}
#endif
}
}