Наследование: LeopotamGroup.Common.MonoBehaviourBase
Пример #1
0
 void ValidatePanel()
 {
     if (_panel == null)
     {
         _panel = GuiPanel.GetPanel(transform);
     }
 }
Пример #2
0
 void RaiseOnChanged(GuiPanel panel)
 {
     _onChangedListenersCallingList.Clear();
     _onChangedListenersCallingList.AddRange(_onChangeListeners);
     for (var i = _onChangedListenersCallingList.Count - 1; i >= 0; i--)
     {
         _onChangeListeners[i].ValidatePanel(panel);
     }
     _onChangedListenersCallingList.Clear();
 }
 protected virtual void OnDisable()
 {
     if (GuiSystem.IsInstanceCreated ()) {
         GuiSystem.Instance.RemoveEventReceiver (this);
     }
     _visualPanel = null;
 }
 /// <summary>
 /// Force reset cached parent panel reference.
 /// </summary>
 public void ResetPanel()
 {
     _visualPanel = GuiPanel.GetPanel (transform);
 }
 void ValidatePanel()
 {
     if (_panel == null) {
         _panel = GuiPanel.GetPanel (transform);
     }
 }
 void RaiseOnChanged(GuiPanel panel)
 {
     _onChangedListenersCallingList.Clear ();
     _onChangedListenersCallingList.AddRange (_onChangeListeners);
     for (var i = _onChangedListenersCallingList.Count - 1; i >= 0; i--) {
         _onChangeListeners[i].ValidatePanel (panel);
     }
     _onChangedListenersCallingList.Clear ();
 }
 void OnEnable()
 {
     _panel = GetComponent <GuiPanel> ();
     Validate();
 }
 void OnEnable()
 {
     _panel = GetComponent<GuiPanel> ();
     Validate ();
 }