public void ShareAction()
        {
            ///string msg = "Enter this code to earn mony " + SecurePlayerPrefs.GetString (GetPlayerDetailsTags.REFREL_CODE);
            ///
            /// Sumit Kumar invited you to play Ludo Money. Please enter referral code 0975345and get free 50 Rs worth of coins. Please download the game from:
            string msg = UserController.getInstance.Name + " invited you to play Ludo Money-First ever real money ludo game.Enter referral code '" + SecurePlayerPrefs.GetString(GetPlayerDetailsTags.REFREL_CODE) + "' & get coin worth Rs." + SecurePlayerPrefs.GetString(Tags.REFERRAL_COIN_FOR_OLD_PLAYER) + ". Download Now: " + SecurePlayerPrefs.GetString(Tags.APP_DOWNLOAD_URL);

            GameConstantData.shareText(msg);
        }
        //public void InviteFaceookFrnd ()
        //{

        //	string fbid = SecurePlayerPrefs.GetString (GetPlayerDetailsTags.PLAYER_FBID);
        //	if (fbid.Length > 1) {

        //		//print ("AddFriendAction working " + fbid);
        //		FB.Mobile.AppInvite (
        //			new Uri ("https://fb.me/" + fbid),
        //			new Uri ("https://play.google.com/store/apps/details?id=com.twist.Timepass"),
        //			delegate(IAppInviteResult result) {
        //				// Debug.Log (result.RawResult);
        //			}
        //		);
        //	}
        //}

        public void ShareCode()
        {
            int    entryFee  = GameConstantData.entryFee;
            string tableCode = TableCode.GetComponent <Text>().text;
            //// Debug.Log ("Entry fee "+entryFee);
            //Your friend "name" have invited you to play Ludo in a private room on Ludo Money. Please enter this code "code" to join your friend.
            //string s = "table joining fee " + entryFee + " Table code " + tableCode
            string s = "Your friend " + UserController.getInstance.Name + " have invited you to play Ludo in Rs." + GameConstantData.entryFee + " private room on Ludo Money. Please enter this code " + tableCode + " to join your friend at " + SecurePlayerPrefs.GetString(Tags.APP_DOWNLOAD_URL);

            GameConstantData.shareText(s);
        }
Beispiel #3
0
        public void ShareAction()
        {
            string msg = "your friend invited you to play Ludo First ever real chip ludo game. Download Now: " + SecurePlayerPrefs.GetString(Tags.APP_DOWNLOAD_URL);

            GameConstantData.shareText(msg);
        }