public bool ShareDialog(Uri photoURL = null) { if (!HasHandshook) { HandShake(); } InstagramShare.ShareInstagram(photoURL != null ? photoURL.AbsoluteUrlOrEmptyString() : null); return(true); }
void Awake() { if (Instance != null) { if (Instance != this) { Destroy(gameObject); } return; // return is my addition so that the inspector in unity still updates } // Here we save our singleton instance Instance = this; DontDestroyOnLoad(gameObject); }
// TODO - make a copy of facebook AbsoluteUrlOrEmptyString #if UNITY_IPHONE public static void ShareInstagram(string photoURL) { InstagramShare.IOSShareInstagram(null, photoURL); }