| | |
| | | {
|
| | | WindowCenter.Instance.Get<MainInterfaceWin>().IsShowButtonGroup();
|
| | | }
|
| | | //-----是否在自动强化中
|
| | | public bool StrengthegingBool = false;//是否再自动强化中
|
| | | public int StrengthegingAddFight = 0;//存取需要添加的战斗力值
|
| | | // --用于任务仙玉不足购买飞鞋
|
| | | public bool IsFlyShoseBool = false;
|
| | | public int FlyShoseTaskID = 0;
|
| | |
| | | {
|
| | | FlyShoseTaskID = 0;
|
| | | IsFlyShoseBool = false;
|
| | | StrengthegingAddFight = 0;
|
| | | StrengthegingBool = false;
|
| | | IsTipBool = true;
|
| | | prowNum = 0;
|
| | | ProwNumAdd = 0;
|
| | |
| | | if (power > prowNum)
|
| | | {
|
| | | ProwNumAdd = power - prowNum;
|
| | | if (StrengthegingBool || StrengthegingAddFight != 0)
|
| | | {
|
| | | StrengthegingAddFight += ProwNumAdd;
|
| | | }
|
| | | prowNum = power;
|
| | | if (!StrengthegingBool && StrengthegingAddFight == 0)
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<PowerAddWin>();
|
| | | }
|
| | | WindowCenter.Instance.Open<PowerAddWin>();
|
| | | WindowCenter.Instance.CloseImmediately("PowerAddWin");
|
| | | }
|
| | | WindowCenter.Instance.Open<PowerAddWin>();
|
| | |
|
| | | }
|
| | | else
|
| | |
| | | prowNum = power;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator LoadingIE()
|
| | | {
|
| | | yield return new WaitForSeconds(0.5f);
|
| | | ProwNumAdd = StrengthegingAddFight;
|
| | | StrengthegingAddFight = 0;
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<PowerAddWin>();
|
| | | }
|
| | | WindowCenter.Instance.Open<PowerAddWin>();
|
| | | }
|
| | |
|
| | | public void FabaoPowerAdd(int power)
|