OnClickLogoCouponeHandler.cs 814 B

123456789101112131415161718192021222324252627282930313233343536
  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. // KHD.FlurryAnalyticsTest.instance.LifjaCoupone();
  14. WinCoupone.Show();
  15. }
  16. else
  17. {
  18. WinCoupone.GetComponent<CouponeWin>().Init(CouponeDurex);
  19. //KHD.FlurryAnalyticsTest.instance.DurexCoupone();
  20. WinCoupone.Show();
  21. }
  22. WinCoupone.Show();
  23. }
  24. // Update is called once per frame
  25. void Update () {
  26. }
  27. }