void Awake() { if (ShareBunch.INSTANCE == null) { ShareBunch.INSTANCE = this; BunchManager.registerBunch(BUNCH); GameObject.DontDestroyOnLoad(this); } else { GameObject.Destroy(this.gameObject); } }
void OnShareState() { // if(GoogleAnalyticsV3.instance) // GoogleAnalyticsV3.instance.LogScreen("Share"); // // GoogleAnalyticsV3.instance.DispatchHits(); // if(!GameObject.FindGameObjectWithTag(Tags.SocialSharing)) // Instantiate(Resources.Load(Menus.SocialSharing)); GameAnalytics.NewDesignEvent("Menu:Share"); string text = "Hey! I have scored " + Prefs.highScore + " in Dino Rage 3D. Challenge me!"; text += "\n" + Constants.ANDROID_TWEET_BITLY_LINK; ShareBunch.GetInstance().ShareText(text); }
void Start() { ShareBunch.GetInstance().ShareText("I'm sharing the text"); }