예제 #1
0
 void Awake()
 {
     if (ShareBunch.INSTANCE == null) {
         ShareBunch.INSTANCE = this;
         BunchManager.registerBunch(BUNCH);
         GameObject.DontDestroyOnLoad(this);
     } else {
         GameObject.Destroy(this.gameObject);
     }
 }
예제 #2
0
 void Awake()
 {
     if (ShareBunch.INSTANCE == null)
     {
         ShareBunch.INSTANCE = this;
         BunchManager.registerBunch(BUNCH);
         GameObject.DontDestroyOnLoad(this);
     }
     else
     {
         GameObject.Destroy(this.gameObject);
     }
 }
예제 #3
0
    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);
    }
예제 #4
0
 void Start()
 {
     ShareBunch.GetInstance().ShareText("I'm sharing the text");
 }