12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class OnClickLogoCouponeHandler : MonoBehaviour
- {
- public ScreenBase WinCoupone;
- public Texture CouponeLifja;
- public Texture CouponeDurex;
- void OnClick () {
- if (gameObject.name == "LogoLifja")
- {
-
- WinCoupone.GetComponent<CouponeWin>().Init(CouponeLifja);
- if (FlurryLogger.Instance)
- {
- FlurryLogger.Instance.LifjaCoupone();
- }
-
- WinCoupone.Show();
- }
- else
- {
- WinCoupone.GetComponent<CouponeWin>().Init(CouponeDurex);
- if (FlurryLogger.Instance)
- {
- FlurryLogger.Instance.DurexCoupone();
- }
- WinCoupone.Show();
- }
- WinCoupone.Show();
- }
-
- // Update is called once per frame
- void Update () {
-
- }
- }
|