#if UNITY_IOS || UNITY_TVOS using System.Collections.Generic; using UnityEngine; using UnityEditor.iOS.Xcode; namespace VoxelBusters.CoreLibrary.Editor.NativePlugins.Build.Xcode { public static class PlistUtility { #region Plist extensions public static bool TryGetElement(this PlistElementDict dict, string key, out T element) where T : PlistElement { IDictionary dictionary = dict.values; PlistElement value; if (dictionary.TryGetValue(key, out value)) { element = (T)value; return true; } element = default(T); return false; } public static bool Contains(this PlistElementArray array, string value) { List valueList = array.values; for (int iter = 0; iter < valueList.Count; iter++) { if (valueList[iter].AsString() == value) { return true; } } return false; } #endregion } } #endif