备份CatanBuilding瘦身独立工程
This commit is contained in:
12
Assets/Scripts/UI/ShootingRange/ShootingRangeBlocker.cs
Normal file
12
Assets/Scripts/UI/ShootingRange/ShootingRangeBlocker.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user