public static void UpdatePlist(string path)
 {
     const string fileName = "Info.plist";
     string appId = FBSettings.AppId; 
     string fullPath = Path.Combine(path, fileName);
     
     if (string.IsNullOrEmpty(appId) || appId.Equals("0"))
     {
         Debug.LogError("You didn't specify a Facebook app ID.  Please add one using the Facebook menu in the main Unity editor.");
         return;
     }
     
     var fbParser = new FBPListParser(fullPath);
     fbParser.UpdateFBSettings(appId, FBSettings.AllAppIds);
     fbParser.WriteToFile();
 }
Пример #2
0
        public static void UpdatePlist(string path)
        {
            const string fileName = "Info.plist";
            string       appId    = FBSettings.AppId;
            string       fullPath = Path.Combine(path, fileName);

            if (string.IsNullOrEmpty(appId) || appId.Equals("0"))
            {
                Debug.LogError("You didn't specify a Facebook app ID.  Please add one using the Facebook menu in the main Unity editor.");
                return;
            }

            var fbParser = new FBPListParser(fullPath);

            fbParser.UpdateFBSettings(appId, FBSettings.AllAppIds);
            fbParser.WriteToFile();
        }