Example #1
0
    static int _CreateFramework_Util(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            LuaFramework.Util obj = new LuaFramework.Util();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: LuaFramework.Util.New");
        }

        return(0);
    }
    static int _CreateLuaFramework_Util(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                LuaFramework.Util obj = new LuaFramework.Util();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: LuaFramework.Util.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #3
0
        public static string GetString(string key)
        {
            string key2 = Util.GetKey(key);

            return(PlayerPrefs.GetString(key2));
        }
Example #4
0
        public static void RemoveData(string key)
        {
            string key2 = Util.GetKey(key);

            PlayerPrefs.DeleteKey(key2);
        }
Example #5
0
        public static bool HasKey(string key)
        {
            string key2 = Util.GetKey(key);

            return(PlayerPrefs.HasKey(key2));
        }
Example #6
0
        public static int GetInt(string key)
        {
            string key2 = Util.GetKey(key);

            return(PlayerPrefs.GetInt(key2));
        }
Example #7
0
 public static GameObject Peer(GameObject go, string subnode)
 {
     return(Util.Peer(go.transform, subnode));
 }
Example #8
0
 public static GameObject Child(GameObject go, string subnode)
 {
     return(Util.Child(go.transform, subnode));
 }
Example #9
0
 public static T Add <T>(Transform go) where T : Component
 {
     return(Util.Add <T>(go.gameObject));
 }