| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using UnityEngine; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | public class TimeRushManager : GameSystemManager<TimeRushManager>, IOpenServerActivity |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | public const int activityType = (int)OpenServerActivityCenter.ActivityType.AT_DateActivity; |
| | | public const int activityID = (int)NewDayActivityID.TimeRushAct; |
| | | public const int activityID = (int)OperationType.TimeRush; |
| | | public int actNum = 10; |
| | | public static OperationType operaType = OperationType.TimeRush; |
| | | public Redpoint redPoint = new Redpoint(MainRedDot.TimeRushRepoint); |
| | |
| | | OperationTimeHepler.Instance.operationAdvanceEvent += OperationAdvanceEvent; |
| | | StoreModel.Instance.RefreshBuyShopLimitEvent += RefreshBuyShopLimitEvent; |
| | | //storeModel.RefreshBuyShopLimitEvent += RefreshBuyShopLimitEvent; |
| | | OpenServerActivityCenter.Instance.Register(activityID, this, activityType); |
| | | OpenServerActivityCenter.Instance.Register(activityID, this); |
| | | |
| | | var config = FuncConfigConfig.Get("TimeRush"); |
| | | windowIDDict = ConfigParse.ParseIntDict(config.Numerical1); |
| | |
| | | public event Action OnNewAwardHaveEvent; |
| | | public void CheckNewAwardHave(int roundType, int curRound, int curValue) |
| | | { |
| | | if (!IsFuncOpen()) |
| | | return; |
| | | |
| | | if (lastCurRoundDict.ContainsKey(roundType) && lastCurValueDict.ContainsKey(roundType)) |
| | | { |
| | | int lastCurRound = lastCurRoundDict[roundType]; |
| | |
| | | newAwardIndex = Award.AwardIndex; |
| | | if (!UIManager.Instance.IsOpened<TimeRushTipWin>()) |
| | | { |
| | | UIManager.Instance.OpenWindow<TimeRushTipWin>(); |
| | | UIManager.Instance.OpenWindowAsync<TimeRushTipWin>().Forget(); |
| | | } |
| | | OnNewAwardHaveEvent?.Invoke(); |
| | | } |