| | |
| | | {
|
| | | if (ItemID == 221)
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen<MainInterfaceWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<MainInterfaceWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseAll(WindowCenter.CloseAllIgnoreType.SystemAndCustom);
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | |
| | | prowNum = power;
|
| | | if (!StrengthegingBool && StrengthegingAddFight == 0)
|
| | | {
|
| | | if (WindowCenter.Instance.CheckOpen<PowerAddWin>())
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<PowerAddWin>();
|
| | | }
|
| | |
| | | yield return new WaitForSeconds(0.5f);
|
| | | ProwNumAdd = StrengthegingAddFight;
|
| | | StrengthegingAddFight = 0;
|
| | | if (WindowCenter.Instance.CheckOpen<PowerAddWin>())
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<PowerAddWin>();
|
| | | }
|
| | |
| | | public void FabaoPowerAdd(int power)
|
| | | {
|
| | | ProwNumAdd = power;
|
| | | if (WindowCenter.Instance.CheckOpen<PowerAddWin>())
|
| | | if (WindowCenter.Instance.IsOpen<PowerAddWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<PowerAddWin>();
|
| | | }
|