备份CatanBuilding瘦身独立工程
This commit is contained in:
23
Assets/Scripts/UI/Home/HomePanel_OpenBox.cs
Normal file
23
Assets/Scripts/UI/Home/HomePanel_OpenBox.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using asap.core;
|
||||
using cfg;
|
||||
using game;
|
||||
using GameCore;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class HomePanel
|
||||
{
|
||||
bool AquariumUpdate()
|
||||
{
|
||||
var _dataProvider = GContext.container.Resolve<FishingBoxDataProvier>();
|
||||
Dictionary<int, int> FishingBoxs = _dataProvider.Data.FishingBoxs;
|
||||
foreach (var item in FishingBoxs)
|
||||
{
|
||||
if (item.Value > 0)
|
||||
{
|
||||
UIManager.Instance.ShowUI(UITypes.AquariumUpdatePopupPanel);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user