コード例 #1
0
        public bool ShareDialog(Uri photoURL = null)
        {
            if (!HasHandshook)
            {
                HandShake();
            }

            InstagramShare.ShareInstagram(photoURL != null ? photoURL.AbsoluteUrlOrEmptyString() : null);

            return(true);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        // TODO - make a copy of facebook AbsoluteUrlOrEmptyString

#if UNITY_IPHONE
        public static void ShareInstagram(string photoURL)
        {
            InstagramShare.IOSShareInstagram(null, photoURL);
        }