Skip to content

Commit

Permalink
Change to instance method
Browse files Browse the repository at this point in the history
  • Loading branch information
treacher committed Mar 17, 2015
1 parent 50f7fe4 commit 447691e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Assets/Extensions/FrispSocial/FrispAndroidSocial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.Collections;

#if UNITY_ANDROID
#if UNITY_ANDROID && !UNITY_EDITOR
public class FrispAndroidSocial {
private static readonly FrispAndroidSocial _singleton = new FrispAndroidSocial ();

Expand Down
2 changes: 1 addition & 1 deletion Assets/Extensions/FrispSocial/FrispAppleSocial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class FrispAppleSocial : MonoBehaviour {
return _singleton;
}

public static void ShareImage(String text, Texture2D image) {
public void ShareImage(String text, Texture2D image) {
var imageInBytes = image.EncodeToPNG();
var base64Image = System.Convert.ToBase64String (imageInBytes);
_Share(text, base64Image);
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/ExampleShare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ExampleShare : MonoBehaviour {
FrispAppleSocial.Instance().ShareImage("Testing", tex);
#endif

#if UNITY_ANDROID
#if UNITY_ANDROID && !UNITY_EDITOR
FrispAndroidSocial.Instance().ShareImage("Title", "Testing", tex);
#endif

Expand Down

0 comments on commit 447691e

Please sign in to comment.