1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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<ScreenBase>();
- }
- void OnOkButtonMsg()
- {
- _screenBase.Hide();
- }
-
- void OnShareButtonMsg()
- {
- /*var parameters = new Dictionary<string,object>
- {
- { "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);
- }
- }
|