private void OnAddFriendsClick(GameObject go) { #if FACEBOOK if (FB.IsLoggedIn) { FbManager.InviteFriendsRequest(); } else { FbManager.Login(); } #endif }
private void OnRequestClick(GameObject go) { #if FACEBOOK if (FB.IsLoggedIn) { FbManager.InviteFriendsRequest(result => { if (!string.IsNullOrEmpty(result.RawResult)) { if (PlayerPrefs.GetInt("is_add_friends", 0) == 0) { CurrencyManager.AddCurrency(100); PlayerPrefs.SetInt("is_add_friends", 1); AddfriendsRewardObject.SetActive(false); } } }); } else { FbManager.Login(); } #endif }