You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
687 B
21 lines
687 B
3 years ago
|
using ET.EventType;
|
||
|
using ET.FUIBuilding;
|
||
|
using ET.FUIMain;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
[FriendClass(typeof(OperationComponent))]
|
||
|
public class EnterCreateResourceEdit_Init : AEvent<EnterCreateResourceEdit>
|
||
|
{
|
||
|
protected override void Run(EnterCreateResourceEdit args)
|
||
|
{
|
||
|
var zoneScene = args.Unit.ZoneScene();
|
||
|
// 禁用正常地图操作
|
||
|
zoneScene.CurrentScene().GetComponent<OperationComponent>().Enabled = false;
|
||
|
|
||
|
// 隐藏所有UI
|
||
|
zoneScene.GetComponent<FUIComponent>().HideWindow(FUI_BuildingWindow.UIResName);
|
||
|
zoneScene.GetComponent<FUIComponent>().HideUI(FUI_Main.UIResName);
|
||
|
}
|
||
|
}
|
||
|
}
|