示例#1
0
文件: Gate.cs 项目: MK4H/MHUrho
        public override void Dispose()
        {
            foreach (var node in roofNodes.Values)
            {
                node.Remove();
            }

            foreach (var node in tunnelNodes.Values)
            {
                node.Remove();
            }

            window?.Hide();
            window?.Dispose();
            healthBar?.Dispose();
            if (clicker != null)
            {
                clicker.Clicked -= OnClicked;
            }
        }
示例#2
0
文件: Gate.cs 项目: MK4H/MHUrho
 void HideButtonPressed(PressedEventArgs obj)
 {
     gateWindow.Hide();
 }