using UnityEngine; using System.Collections.Generic; #if UNITY_ANDROID //using FacebookAccess = Prime31.FacebookAndroid; #elif UNITY_IPHONE using FacebookAccess = WrapperFB; #elif UNITY_WEBPLAYER using FacebookAccess = FacebookWeb; #endif [RequireComponent(typeof(ScreenBase))] public class WhoWonChallengeScreen : ChallengeResultItem { //ChallengeResultUIData _data; ScreenBase _screenBase; void Awake() { _screenBase = GetComponent(); } void OnOkButtonMsg() { _screenBase.Hide(); } void OnShareButtonMsg() { /*var parameters = new Dictionary { { "to", _data.otherFacebookId }, { "link", GameConstants.PLAY_GAME_URL }, { "name", Localization.instance.Get("facebook.shareChallengeWon.linkName") }, { "picture", GameConstants.FACEBOOK_POST_IMAGE }, { "caption", Localization.instance.Get("facebook.shareChallengeWon.imageCaption") }, { "description", Localization.instance.Get("facebook.shareChallengeWon.description")}, { "actions", "[ { 'name': '"+Localization.instance.Get("facebook.shareChallengeWon.play")+"', 'link': '"+GameConstants.PLAY_GAME_URL+"'} ]" } };*/ //FacebookAccess.showFacebookShareDialog( parameters ); _screenBase.Hide(); } public override void SetData(ChallengeResultUIData data) { //_data = data; base.SetData(data); } }