| | |
| | | public void UpdateItemRedPoint(Image imgRed, PhantasmPavilionType type, int id) |
| | | { |
| | | imgRed.SetActive(false); |
| | | |
| | | if (!IsFuncOpen()) |
| | | return; |
| | | if (!Has(type, id)) |
| | | return; |
| | | PhantasmPavilionState state = GetUnLockState(type, id); |
| | |
| | | imgRed.SetActive(true); |
| | | } |
| | | } |
| | | readonly int funcId = 3;//内政 |
| | | //内政没开不刷红点 |
| | | public bool IsFuncOpen() |
| | | { |
| | | return FuncOpen.Instance.IsFuncOpen(funcId); |
| | | } |
| | | public void UpdateRedPoint() |
| | | { |
| | | parentRedpoint.state = RedPointState.None; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | if (!IsFuncOpen()) |
| | | return; |
| | | |
| | | // 有可手动解锁的 |
| | | UpdateRedPointByCanActivate(PhantasmPavilionType.Model, PhantasmPavilionRepointType.ModelNormal, 1); |
| | | UpdateRedPointByCanActivate(PhantasmPavilionType.Model, PhantasmPavilionRepointType.ModelEvent, 2); |