OnInit() публичный Метод

public OnInit ( ) : void
Результат void
Пример #1
0
    static int OnInit(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        NetworkManager obj = LuaScriptMgr.GetUnityObject <NetworkManager>(L, 1);

        obj.OnInit();
        return(0);
    }
    static int OnInit(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        NetworkManager obj = (NetworkManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "NetworkManager");

        obj.OnInit();
        return(0);
    }
Пример #3
0
 static int OnInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         NetworkManager obj = (NetworkManager)ToLua.CheckObject(L, 1, typeof(NetworkManager));
         obj.OnInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #4
0
    private static int OnInit(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            NetworkManager networkManager = (NetworkManager)ToLua.CheckObject(L, 1, typeof(NetworkManager));
            networkManager.OnInit();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
Пример #5
0
 /// <summary>
 /// 初始化完成
 /// </summary>
 public void OnInit()
 {
     _networkManager.OnInit();
 }