12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using UnityEngine;
- using System.Collections;
- using System;
- public class NoLivesLeftDialog : MonoBehaviour
- {
- ScreenBase screen;
- void Awake()
- {
- screen = GetComponent<ScreenBase>();
- //MediaPlayerCtrl.Instance.OnEnd += OnEnd;
- }
- /*public void OnEnd()
- {
- Debug.Log("OnEnd");
- LivesManager.Instance.RechargeOneLife();
- }*/
-
- void OnRequestLivesAdButtonMsg()
- {
- screen.Hide();
- }
- void OnHide()
- {
- screen.Hide();
- }
- void OnRequestInvite()
- {
- WrapperFB.InviteFriends();
- }
-
- void OnBuyLivesButtonMsg()
- {
- StoreManager.Instance.Purchase(StoreProductId.lives_5);
- }
- void OnRequestShowAdButton()
- {
- //screen.Hide();
- if (!ConnectivityPollManager.HasInternet)
- {
- MenuManager._instance.scoresScreen.GetComponent<FacebookDialogManager>().noInternetDialog.Show();
- return;
- }
- MediaPlayerCtrl.Instance.PlayAd();
- }
- }
|