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