У меня есть игра, разработанная для iOS, а также для android. Вот код, который внезапно начал выдавать сообщение об ошибке «Assets/GooglePlayGames /Platforms/PlayGamesClientFactory.cs(31,40): CS0234 ошибка:. Тип или пространство имен имя IOS' does not exist in the namespace
GooglePlayGames' вы не нашли ссылку на сборку "Unity 4.6 C#: Тип или имя пространства имен `IOS 'не существует в пространстве имен` GooglePlayGames'
Вот код:
using System;
using UnityEngine;
using UnityEngine.SocialPlatforms;
using GooglePlayGames.BasicApi;
namespace GooglePlayGames {
internal class PlayGamesClientFactory {
internal static IPlayGamesClient GetPlatformPlayGamesClient() {
if (Application.isEditor) {
return new GooglePlayGames.BasicApi.DummyClient();
}
#if UNITY_ANDROID
return new GooglePlayGames.Android.AndroidClient();
#elif UNITY_IPHONE
return new GooglePlayGames.IOS.IOSClient();
#else
return new GooglePlayGames.BasicApi.DummyClient();
#endif
}
}
}
ошибка находится на линии:
return new GooglePlayGames.IOS.IOSClient();
Вам не хватает ссылки на сборку? –