void Start () { // bind button events ShareButton.Select(); ShareButton.onClick.AddListener(shareClicked); BackButton.onClick.AddListener(backClicked); // Init the share plugin var desc = new SocialDesc() { BB10_ShareSelectorUI = BB10_ShareSelectorUI, BB10_ShareSelectorTitle = BB10_ShareSelectorTitle, BB10_CloseButton = BB10_CloseButton, BB10_ShareSelectorBBM = BB10_ShareSelectorBBM, BB10_ShareSelectorFacebook = BB10_ShareSelectorFacebook, BB10_ShareSelectorTwitter = BB10_ShareSelectorTwitter }; SocialManager.Init(desc); }
public void Init(SocialDesc desc) { Debug.Log("Share not supported in this environment!"); }
/// <summary> /// Used to init the Social API /// </summary> /// <param name="desc">Social Desc</param> public static void Init(SocialDesc desc) { plugin.Init(desc); }