OnClickLogoCouponeHandler.cs 913 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class OnClickLogoCouponeHandler : MonoBehaviour
  5. {
  6. public ScreenBase WinCoupone;
  7. public Texture CouponeLifja;
  8. public Texture CouponeDurex;
  9. void OnClick () {
  10. if (gameObject.name == "LogoLifja")
  11. {
  12. WinCoupone.GetComponent<CouponeWin>().Init(CouponeLifja);
  13. //if (FlurryLogger.Instance)
  14. //{
  15. // FlurryLogger.Instance.LifjaCoupone();
  16. //}
  17. WinCoupone.Show();
  18. }
  19. else
  20. {
  21. WinCoupone.GetComponent<CouponeWin>().Init(CouponeDurex);
  22. //if (FlurryLogger.Instance)
  23. //{
  24. //FlurryLogger.Instance.DurexCoupone();
  25. //}
  26. WinCoupone.Show();
  27. }
  28. WinCoupone.Show();
  29. }
  30. // Update is called once per frame
  31. void Update () {
  32. }
  33. }