| | |
| | | public List<int> m_AllFuncs { get; private set; }
|
| | | public int openDays { get; private set; }
|
| | | public int OSRedEnvelopeType { get; private set; }
|
| | | public int initialCount { get; private set; }
|
| | | public int addSeconds { get; private set; }
|
| | | public int limitCount { get; private set; }
|
| | | public float envelopeVoiceCD { get; private set; }
|
| | | public int addCounts { get; private set; }
|
| | | public DateTime overTime = DateTime.Now;
|
| | | public DateTime coolDownTime { get; private set; }
|
| | | void ParseConfig()
|
| | | {
|
| | | var _allCfgs = Config.Instance.GetAllValues<OSRedAchieveConfig>();
|
| | |
| | |
|
| | | var _cfg = Config.Instance.Get<FuncConfigConfig>("OpenServerRedPacketCfg");
|
| | | openDays = int.Parse(_cfg.Numerical1);
|
| | | initialCount = int.Parse(_cfg.Numerical2);
|
| | | addSeconds = Mathf.Max(60, int.Parse(_cfg.Numerical3));
|
| | | limitCount = int.Parse(_cfg.Numerical4);
|
| | | addCounts = int.Parse(_cfg.Numerical5);
|
| | | _cfg = Config.Instance.Get<FuncConfigConfig>("OpenServerRedPacketType");
|
| | | OSRedEnvelopeType = int.Parse(_cfg.Numerical1);
|
| | | _cfg = Config.Instance.Get<FuncConfigConfig>("RedEnvelopeVoiceCd");
|
| | |
| | | {
|
| | | totalJadeGet = (int)_pak.MoneyNum;
|
| | | getEnvelopeTimes = _pak.GrabCnt;
|
| | | coolDownTime = TimeUtility.GetTime(_pak.StartTime);
|
| | | if (OSRedEnvelopeInfoEnvent != null)
|
| | | {
|
| | | OSRedEnvelopeInfoEnvent();
|