Hugula.UGUIExtend.CEventReceive.OnButtonClick C# (CSharp) Method

OnButtonClick() public method

public OnButtonClick ( MonoBehaviour arg ) : void
arg UnityEngine.MonoBehaviour
return void
•ISubmitHandler - OnSubmit - Called when the submit button is pressed
•ICancelHandler - OnCancel - Called when the cancel button is pressed
 ***/
namespace Hugula.UGUIExtend
{
    using System.Collections;

Same methods

CEventReceive::OnButtonClick ( Object arg ) : void

Usage Example

Exemplo n.º 1
0
 static public int OnButtonClick(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.Object)))
         {
             Hugula.UGUIExtend.CEventReceive self = (Hugula.UGUIExtend.CEventReceive)checkSelf(l);
             UnityEngine.Object a1;
             checkType(l, 2, out a1);
             self.OnButtonClick(a1);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.MonoBehaviour)))
         {
             Hugula.UGUIExtend.CEventReceive self = (Hugula.UGUIExtend.CEventReceive)checkSelf(l);
             UnityEngine.MonoBehaviour       a1;
             checkType(l, 2, out a1);
             self.OnButtonClick(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }