| | |
| | | ChatManager.Instance.OnUpdateTalkEvent += OnUpdateTalkEvent; |
| | | UIManager.Instance.OnOpenWindow += OnOpenWindow; |
| | | AutoFightModel.Instance.OnAutoChallengeBossEvent += OnAutoChallengeBossEvent; |
| | | autoFightBossUIEffectPlayer.Stop(); |
| | | if (AutoFightModel.Instance.isAutoChallengeBoss) |
| | | { |
| | | autoFightBossUIEffectPlayer.Play(); |
| | | } |
| | | TryPlayAutoFightBoss(); |
| | | Display(); |
| | | DisplayFirstChargeBtn(); |
| | | DisplayOSActivity(); |
| | |
| | | DelayPlayMusic().Forget(); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | |
| | | blessLVText.text = BlessLVManager.Instance.m_TreeLV.ToString(); |
| | | } |
| | | |
| | | void TryPlayAutoFightBoss() |
| | | { |
| | | autoFightBossUIEffectPlayer.Stop(); |
| | | if (AutoFightModel.Instance.isAutoAttackSet && AutoFightModel.Instance.isAutoChallengeBoss) |
| | | { |
| | | autoFightBossUIEffectPlayer.Play(); |
| | | } |
| | | } |
| | | |
| | | void DisplayAutoFight() |
| | | { |
| | | if (AutoFightModel.Instance.isAutoAttackSet) |
| | |
| | | autoCloseImg.SetActive(true); |
| | | autoOpenEffect.Stop(); |
| | | } |
| | | |
| | | TryPlayAutoFightBoss(); |
| | | |
| | | } |
| | | |