Пример #1
0
 private void OnValueChanged(string value)
 {
     if (binderBehaviour != null && !string.IsNullOrEmpty(changedFuncName))
     {
         if (changedParamValues == null || changedParamValues.Length == 0)
         {
             binderBehaviour.CallAction(changedFuncName);
         }
         else
         {
             binderBehaviour.CallAction(changedFuncName, changedParamValues);
         }
     }
 }
Пример #2
0
 private void OnClicked()
 {
     if (binderBehaviour == null)
     {
         LogUtil.Error("UI", "LuaButton:OnClicked->the behaviour is null");
         return;
     }
     if (string.IsNullOrEmpty(clickedFuncName))
     {
         LogUtil.Error("UI", "LuaButton:OnClicked->the funcName is empty");
         return;
     }
     if (paramValues == null || paramValues.Length == 0)
     {
         binderBehaviour.CallAction(clickedFuncName);
     }
     else
     {
         binderBehaviour.CallActionWith(clickedFuncName, paramValues);
     }
 }