Files
ft/Client/Assets/Scripts/UI/ShootingRange/ShootingRangeBlocker.cs
2026-06-29 21:18:33 +08:00

13 lines
350 B
C#

using UnityEngine;
public class ShootingRangeBlocker : MonoBehaviour
{
protected virtual void Awake()
{
ShootingRangeAct.EventAggregator.Publish(new ShootingRangeAct.EventPanelOpen());
}
protected virtual void OnDestroy()
{
ShootingRangeAct.EventAggregator.Publish(new ShootingRangeAct.EventPanelClose());
}
}