예제 #1
0
 public void SetControl(IOrbitInfoControl control)
 {
     m_control       = control;
     apValueUpdate   = control.replaceTextComponentWithTMPro(m_ApValue);
     peValueUpdate   = control.replaceTextComponentWithTMPro(m_PeValue);
     inclValueUpdate = control.replaceTextComponentWithTMPro(m_InclValue);
     eccValueUpdate  = control.replaceTextComponentWithTMPro(m_EccValue);
     updateControl();
     m_control.registerUpdateAction(updateControl);
 }
 public void SetControl(IOrbitInfoControl control)
 {
     m_Control       = control;
     apValueUpdate   = m_Control.ReplaceTextComponentWithTMPro(m_ApValue);
     peValueUpdate   = m_Control.ReplaceTextComponentWithTMPro(m_PeValue);
     inclValueUpdate = m_Control.ReplaceTextComponentWithTMPro(m_InclValue);
     eccValueUpdate  = m_Control.ReplaceTextComponentWithTMPro(m_EccValue);
     UpdateGUI();
     m_Control.RegisterUpdateAction(UpdateGUI);
 }
예제 #3
0
 public void OnDestroy()
 {
     m_control.deregisterUpdateAction(updateControl);
     m_control = null;
 }
 public void OnDestroy()
 {
     m_Control.DeregisterUpdateAction(UpdateGUI);
     m_Control = null;
 }