Esempio n. 1
0
 public override void OnLateUpdate()
 {
     base.OnLateUpdate();
     if (state != null && count != null && (state.dirty || count.dirty))
     {
         UpdateRedpoint(state.Fetch(), count.Fetch());
     }
 }
Esempio n. 2
0
 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());
     }
 }