public override void OnLateUpdate() { base.OnLateUpdate(); if (state != null && count != null && (state.dirty || count.dirty)) { UpdateRedpoint(state.Fetch(), count.Fetch()); } }
protected virtual void OnEnable() { state = RedpointCenter.Instance.GetRedpointState(m_RedpointId); count = RedpointCenter.Instance.GetRedpointCount(m_RedpointId); if (state != null && count != null) { UpdateRedpoint(state.Fetch(), count.Fetch()); } }