コード例 #1
0
ファイル: SocialTest.cs プロジェクト: zhengyudian/u3dxt
 void OnGUISMS()
 {
     if (GUILayout.Button("SMS", GUILayout.ExpandHeight(true)))
     {
         SocialXT.SMS(new string[] { "15555555555" }, "hello");
     }
 }
コード例 #2
0
ファイル: SocialTest.cs プロジェクト: zhengyudian/u3dxt
    void OnGUIPost()
    {
        if (GUILayout.Button("Twitter Post", GUILayout.ExpandHeight(true)))
        {
            SocialXT.Post(SLRequest.SLServiceTypeTwitter,
                          "@vitapoly Your Unity Plugins rock!",
                          _logo,
                          "http://www.U3DXT.com"
                          );
        }

        if (GUILayout.Button("Facebook Post", GUILayout.ExpandHeight(true)))
        {
            SocialXT.Post(SLRequest.SLServiceTypeFacebook,
                          "Super fun games from vitapoly!",
                          null,
                          "http://www.vitapoly.com"
                          );
        }

        if (GUILayout.Button("Sina Weibo Post", GUILayout.ExpandHeight(true)))
        {
            SocialXT.Post(SLRequest.SLServiceTypeSinaWeibo,
                          "My first weibo from U3DXT Social by vitapoly.",
                          _logo,
                          "http://www.U3DXT.com"
                          );
        }
    }
コード例 #3
0
 void OnGUIInstagram()
 {
     if (GUILayout.Button("Instagram", GUILayout.ExpandHeight(true)))
     {
         if (!SocialXT.Instagram(_logo, "Sharing U3DXT on Instagram."))
         {
             Log("Instagram is not installed.");
         }
     }
 }
コード例 #4
0
    // ----------


    // called when the user attempts to make a social post, and passes the int 1 for twitter, 2 for facebook
    public static void SendSocialPost(int socialInt)
    {
        if (socialInt == 1)
        {
            SocialXT.Post(SLRequest.SLServiceTypeTwitter, "Fighting off waves of infection in SAVING TIMMY for iOS!", null, null);
        }
        else if (socialInt == 2)
        {
            SocialXT.Post(SLRequest.SLServiceTypeFacebook, "Fighting off waves of infection in SAVING TIMMY for iOS!", null, null);
        }
    }
コード例 #5
0
ファイル: SocialTest.cs プロジェクト: zhengyudian/u3dxt
 void OnGUIActivitySheet()
 {
     if (GUILayout.Button("Activity Sheet", GUILayout.ExpandHeight(true)))
     {
         SocialXT.Share(new object[] {
             "You can find the best Unity Plugins at U3DXT.com!",
             "http://www.U3DXT.com",
             _logo
         });
     }
 }
コード例 #6
0
ファイル: SocialTest.cs プロジェクト: zhengyudian/u3dxt
 void OnGUIEmail()
 {
     if (GUILayout.Button("Email", GUILayout.ExpandHeight(true)))
     {
         SocialXT.Mail(new string[] { "*****@*****.**" },
                       "email subject",
                       "email body",
                       false,
                       _logo
                       );
     }
 }
コード例 #7
0
 void OnGUIActivitySheet()
 {
     if (GUILayout.Button("Activity Sheet", GUILayout.ExpandHeight(true)))
     {
         SocialXT.Share(new object[] {
             "I am using @vitapoly's awesome U3DXT #Unity3D Plugin. U3DXT.COM #gamedev",
             "http://www.U3DXT.com",
             _logo
         },
                        new string[] { UIActivity.TypeAssignToContact, UIActivity.TypeCopyToPasteboard });
     }
 }
コード例 #8
0
 void OnGUIActivitySheet()
 {
     if (GUILayout.Button("Activity Sheet", GUILayout.ExpandHeight(true)))
     {
         SocialXT.Share(new object[] {
             "You can find the best Unity Plugins at U3DXT.com!",
             "http://www.U3DXT.com",
             _logo
         },
                        new string[] { UIActivity.TypeAssignToContact, UIActivity.TypeCopyToPasteboard });
     }
 }
コード例 #9
0
 void OnGUIEmail()
 {
     if (GUILayout.Button("Email", GUILayout.ExpandHeight(true)))
     {
         SocialXT.Mail(new string[] { "*****@*****.**" },
                       "U3DXT",
                       "I am using your Unity plugin to send this email. Cool.",
                       true,
                       null as UIImage,
                       false
                       );
     }
 }
コード例 #10
0
 public override void DidFinish(MFMessageComposeViewController controller, MessageComposeResult result)
 {
     controller.DismissViewController(true, null);
     SocialXT.OnSMSCompleted(result);
 }
コード例 #11
0
 public override void DidFinish(MFMailComposeViewController controller, MFMailComposeResult result, NSError error)
 {
     controller.DismissViewController(true, null);
     SocialXT.OnMailCompleted(result, error);
 }