public void load()
    {
        string    BasePath       = "CRLuo/LoginBattle";
        TextAsset TA_LoginBattle = PrefabLoader.loadFromUnPack(BasePath, false, false) as TextAsset;

        byte[] config_LB = TA_LoginBattle.bytes;

        if (config_LB != null)
        {
            configs = SharedPrefs.loadValue <LoginSceneConfig>(config_LB);
        }
        Resources.UnloadAsset(TA_LoginBattle);
        config_LB = null;

        BasePath = "CRLuo/DefaultAction";
        TextAsset TA_Default = PrefabLoader.loadFromUnPack(BasePath, false, false) as TextAsset;

        byte[] config_DF = TA_Default.bytes;
        if (config_DF != null)
        {
            DefaultActionList = SharedPrefs.loadValue <DefaultActionList>(config_DF);
        }
        Resources.UnloadAsset(TA_Default);
        config_DF = null;
    }
Example #2
0
    public DataObject ReadFromLocalFileSystem(DataType curType, bool decrypto = true)
    {
        DataObject ob = null;

        ob = prefs.loadValue(generatePath(curType), generateType(curType), decrypto);
        if (ob != null)
        {
            ob.mType = curType;
        }
        return(ob);
    }