Пример #1
0
        public static Plist Load(string _plistTextContents)
        {
            // Load file contents
            Plist _plist = new Plist();

            _plist.ParsePlistText(_plistTextContents);
            return(_plist);
        }
Пример #2
0
        public static Plist LoadPlistAtPath(string _filePath)
        {
            // Check if file exists
            if (!File.Exists(_filePath))
            {
                Debug.LogError("[Plist] Load failed as file doesnt exist, Path=" + _filePath);
                return(null);
            }

            // Load file contents
            string _plistFileText = File.ReadAllText(_filePath);
            Plist  _plist         = new Plist();

            _plist.ParsePlistText(_plistFileText);
            return(_plist);
        }