Exemplo n.º 1
0
    public void AddButtonListen(string cellName, string wedgateName, UnityAction action)
    {
        UISubManager tmpSub = GetSubManager(cellName);

        if (tmpSub != null)
        {
            tmpSub.AddButtonListen(wedgateName, action);
        }
    }
Exemplo n.º 2
0
 static int GetSubManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIBases      obj  = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
         string       arg0 = ToLua.CheckString(L, 2);
         UISubManager o    = obj.GetSubManager(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }