public static void TwitterShare(string status, Texture2D texture) { switch (Application.platform) { case RuntimePlatform.Android: MSPAndroidSocialGate.StartShareIntent("Share", status, texture, "twi"); break; case RuntimePlatform.IPhonePlayer: MSPIOSSocialManager.instance.TwitterPost(status, null, texture); break; } }
public static void ShareMedia(string caption, string message, Texture2D texture) { switch (Application.platform) { case RuntimePlatform.Android: MSPAndroidSocialGate.StartShareIntent(caption, message, texture); break; case RuntimePlatform.IPhonePlayer: MSPIOSSocialManager.instance.ShareMedia(message, texture); break; } }
public static void FacebookShare(string message, Texture2D texture) { switch (Application.platform) { case RuntimePlatform.Android: MSPAndroidSocialGate.StartShareIntent("Share", message, texture, "facebook.katana"); break; case RuntimePlatform.IPhonePlayer: MSPIOSSocialManager.instance.FacebookPost(message, null, texture); break; } }
public static void TwitterGifShare(string message, string gifPath) { switch (Application.platform) { case RuntimePlatform.Android: MSPAndroidSocialGate.ShareTwitterGif(gifPath, message); break; case RuntimePlatform.IPhonePlayer: MSPIOSSocialManager.Instance.TwitterPostGif(message, gifPath); break; } }
public static void SendMail(string subject, string body, string recipients, Texture2D texture) { switch (Application.platform) { case RuntimePlatform.Android: MSPAndroidSocialGate.SendMail("Send Mail", body, subject, recipients, texture); break; case RuntimePlatform.IPhonePlayer: MSPIOSSocialManager.instance.SendMail(subject, body, recipients, texture); break; } }
public static void WhatsappShare(string message, Texture2D texture = null) { switch (Application.platform) { case RuntimePlatform.Android: MSPAndroidSocialGate.StartShareIntent("", message, texture); break; case RuntimePlatform.IPhonePlayer: if (texture == null) { MSPIOSSocialManager.Instance.WhatsAppShareText(message); } else { MSPIOSSocialManager.Instance.WhatsAppShareImage(texture); } break; } }