| | |
| | | public class MainWinTopGrid : MonoBehaviour |
| | | { |
| | | [SerializeField] bool m_AlwayShow; |
| | | // 配置逻辑参考 IsOpen 函数 |
| | | [SerializeField] int m_FunctionId; |
| | | [SerializeField] int m_ActivityType = 0; //活动模板 |
| | | [SerializeField] int m_OpenServerActivityType = 100; |
| | | [SerializeField] bool m_IsAnyOpenServerActivity = false; |
| | | [SerializeField] Operation m_OperationActivityType = Operation.max; |
| | |
| | | return FuncOpen.Instance.IsFuncOpen(m_FunctionId); |
| | | } |
| | | |
| | | //默认100为不判定 |
| | | if (m_OpenServerActivityType != 100) |
| | | { |
| | | return OpenServerActivityCenter.Instance.IsActivityOpen(m_OpenServerActivityType); |
| | | return OpenServerActivityCenter.Instance.IsActivityOpen(m_OpenServerActivityType, m_ActivityType); |
| | | } |
| | | |
| | | if (m_IsAnyOpenServerActivity) |
| | | { |
| | | var functionOrder = 0; |
| | | return OpenServerActivityCenter.Instance.IsAnyActivityOpen(out functionOrder); |
| | | return OpenServerActivityCenter.Instance.IsAnyActivityOpen(out functionOrder, m_ActivityType); |
| | | } |
| | | |
| | | if (m_OperationActivityType != Operation.max) |