Init() protected méthode

protected Init ( ) : void
Résultat void
Exemple #1
0
    public override void Init()
    {
        if (luaObject == null)
        {
            luaObject = new GameObject("LuaClientObject");
            luaClient = luaObject.AddComponent <LuaClient>();
            GameObject.DontDestroyOnLoad(luaObject);
            dicObjScript = new Dictionary <GameObject, CScriptObject>();
            luaClient.Init();
        }

        instance = this;
    }