| | |
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | | List<FunctionForecastConfig> con_fig = new List<FunctionForecastConfig>();
|
| | | private void UnopenedFirst()
|
| | | private void UnopenedFirst() ///找到第一个不是打开状态的细胞的的openNumber
|
| | | {
|
| | | if (con_fig.Count <= 0)
|
| | | {
|
| | |
| | | void DisplayProgress()
|
| | | {
|
| | | var mission = dungeonModel.mission;
|
| | | var currentHp = (long)(mission.remainHPPer * 0.000001d * BOSSHP_TOTAL);
|
| | | var progress = 1 - (float)currentHp / BOSSHP_TOTAL;
|
| | | var currentHp = (long)(mission.remainHPPer/* * 0.000001d * BOSSHP_TOTAL*/);
|
| | | var progress = 1 - (float)currentHp/* / BOSSHP_TOTAL*/;
|
| | | m_Progress.text = StringUtility.Contact((int)(progress * 100), "%");
|
| | | }
|
| | |
|
| | |
| | |
|
| | | public bool IsExpired()
|
| | | {
|
| | | bool IsBool = false;
|
| | | IsBool = (OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.GiftPackage) || OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.GiftPackage));
|
| | | bool IsSatisfyAliveCondition = false;
|
| | | IsSatisfyAliveCondition = (OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.GiftPackage) || OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.GiftPackage));
|
| | | bool IsBuyBool = false;
|
| | | OperationBase operationBase;
|
| | | if (OperationTimeHepler.Instance.TryGetOperationTime(Operation.GiftPackage, out operationBase))
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | if (IsBool && !IsBuyBool)
|
| | | if (IsSatisfyAliveCondition && !IsBuyBool)
|
| | | {
|
| | | return true;
|
| | | return false;
|
| | | }
|
| | | else
|
| | | {
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | m_Buy_Btn.AddListener(() =>
|
| | | {
|
| | |
|
| | | if (limitedTimePackageItemModel.IsExpired())
|
| | | if (!limitedTimePackageItemModel.IsExpired())
|
| | | {
|
| | | if (OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.GiftPackage))
|
| | | {
|