| | |
| | | {
|
| | | onStateUpate(6);
|
| | | }
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
|
| | | public event Action<int> onStateUpate;
|
| | |
|
| | | public bool activate { get; private set; }
|
| | |
|
| | | private bool m_GiftGetNotify = false;
|
| | | public bool giftGetNotify
|
| | | {
|
| | | get { return m_GiftGetNotify; }
|
| | | set
|
| | | {
|
| | | m_GiftGetNotify = value;
|
| | | OSGiftRedpoint.state = value ? RedPointState.Simple : RedPointState.None;
|
| | | }
|
| | | }
|
| | |
|
| | | StoreModel storeModel
|
| | | {
|
| | |
| | | {
|
| | | onStateUpate(6);
|
| | | }
|
| | | UpdateRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | onStateUpate(6);
|
| | | }
|
| | | }
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
|
| | | public bool CheckActivate()
|
| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | giftGetNotify = false;
|
| | | }
|
| | | |
| | | public void SetDayRemind()
|
| | | {
|
| | | if (OSGiftRedpoint.state == RedPointState.Simple)
|
| | | {
|
| | | DayRemind.Instance.SetDayRemind(DayRemind.OSGIFT_REDPOINT, true);
|
| | | UpdateRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | | void UpdateRedpoint()
|
| | | {
|
| | | OSGiftRedpoint.state = RedPointState.None;
|
| | | if (CheckActivate() && !DayRemind.Instance.GetDayRemind(DayRemind.OSGIFT_REDPOINT))
|
| | | {
|
| | | OSGiftRedpoint.state = RedPointState.Simple;
|
| | | }
|
| | | }
|
| | |
|
| | | public Redpoint OSGiftRedpoint = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, 20906);
|