1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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 OnRequestLivesButtonMsg()
- {
- screen.Hide();
- FacebookHelper.Instance.RequestLives();
- }
- 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;
- }
- Adware.Instance.Show(() => { });
- }
- }
|