Beispiel #1
0
 private void RestoreLuaEvents()
 {
     m_OnButtonClick            = Table.Get <Action <LuaTable, string> >("OnButtonClick");
     m_OnToggleValueChange      = Table.Get <DelegateStringBool>("OnToggleValueChange");
     m_OnSliderValueChange      = Table.Get <DelegateStringFloat>("OnSliderValueChange");
     m_OnScrollbarValueChange   = Table.Get <DelegateStringFloat>("OnScrollbarValueChange");
     m_OnInputFieldEndEdit      = Table.Get <Action <LuaTable, string, string> >("OnInputFieldEndEdit");
     m_OnInputFieldValueChanged = Table.Get <Action <LuaTable, string, string> >("OnInputFieldValueChanged");
     m_OnDropdownValueChange    = Table.Get <DelegateStringInt>("OnDropdownValueChange");
     m_OnClickAnyWhere          = Table.Get <Action <LuaTable> >("OnClickAnyWhere");
     m_OnClickDefaultBackground = Table.Get <Action <LuaTable> >("OnClickDefaultBackground");
 }
Beispiel #2
0
 protected override void Unbind()
 {
     SetUIEvents(false);
     m_OnButtonClick            = null;
     m_OnToggleValueChange      = null;
     m_OnSliderValueChange      = null;
     m_OnScrollbarValueChange   = null;
     m_OnDropdownValueChange    = null;
     m_OnInputFieldEndEdit      = null;
     m_OnInputFieldValueChanged = null;
     m_OnClickAnyWhere          = null;
     m_OnClickDefaultBackground = null;
     // Inject(false);
     base.Unbind();
 }