Unity 4.6 C#:类型或名称空间名称'IOS';命名空间“GooglePlayGames';

Unity 4.6 C#:类型或名称空间名称'IOS';命名空间“GooglePlayGames';,c#,ios,unity3d,C#,Ios,Unity3d,我有一个为iOS和android开发的游戏,下面是突然出现错误的代码“Assets/GooglePlayGames/Platforms/PlayGamesClientFactory.cs(31,40):错误CS0234:名称空间中不存在类型或名称空间名称iOS'。GooglePlayGames。是否缺少程序集引用? " 代码如下: using System; using UnityEngine; using UnityEngine.SocialPlatforms; using GooglePla

我有一个为iOS和android开发的游戏,下面是突然出现错误的代码“Assets/GooglePlayGames/Platforms/PlayGamesClientFactory.cs(31,40):错误CS0234:名称空间中不存在类型或名称空间名称
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();

使用依赖于平台的定义“UNITY_IPHONE”被标记为不推荐使用。 Unity文档提到Unity_IOS是IOS平台的新平台相关定义。


GooglePlayGames.IOS.IOSClient()的行;应该是正确的。(不是在我的代码中测试,而是相应的github归档文件显示了该位置的类。)

使用依赖于平台的定义“UNITY\u IPHONE”被标记为不推荐使用。 Unity文档提到Unity_IOS是IOS平台的新平台相关定义。


GooglePlayGames.IOS.IOSClient()的行;应该是正确的。(不是在我的代码中测试,而是在相应的github归档文件中显示该类所在的位置。)

使用GooglePlayGames.IOS包含
位于文件顶部。

包括使用GooglePlayGames.IOS的
位于文件顶部。

是否缺少程序集引用?是否缺少程序集引用?