-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathUnityPNSDKSource.cs
More file actions
30 lines (27 loc) · 966 Bytes
/
UnityPNSDKSource.cs
File metadata and controls
30 lines (27 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using PubnubApi.PNSDK;
namespace PubnubApi.Unity
{
public class UnityPNSDKSource : IPNSDKSource {
private const string build = "9.0.1";
public string GetPNSDK() {
#if(UNITY_IOS)
return string.Format("PubNub-CSharp-UnityIOS/{0}", build);
#elif(UNITY_STANDALONE_WIN)
return string.Format("PubNub-CSharp-UnityWin/{0}", build);
#elif(UNITY_STANDALONE_OSX)
return string.Format("PubNub-CSharp-UnityOSX/{0}", build);
#elif(UNITY_ANDROID)
return string.Format("PubNub-CSharp-UnityAndroid/{0}", build);
#elif(UNITY_STANDALONE_LINUX)
return string.Format("PubNub-CSharp-UnityLinux/{0}", build);
#elif(UNITY_WEBPLAYER)
return string.Format("PubNub-CSharp-UnityWeb/{0}", build);
#elif(UNITY_WEBGL)
return string.Format("PubNub-CSharp-UnityWebGL/{0}", build);
#else
return string.Format("PubNub-CSharp-Unity/{0}", build);
#endif
}
}
}