public void DespawnPopup() { if (currentlySpawnedPopup != null) { currentlySpawnedPopup.DestroySelf(); currentlySpawnedPopup = null; } }
/// <summary> /// 销毁浮动菜单 /// </summary> public void DeSpawnPopup() { if (_currentlySpawnedPopup == null) { return; } _currentlySpawnedPopup.DestroySelf(); _currentlySpawnedPopup = null; }