AppNextTest.cs 923 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using UnityEngine;
  2. using System.Collections;
  3. public class AppNextTest : MonoBehaviour {
  4. // Use this for initialization
  5. void Start () {
  6. #if UNITY_IOS
  7. // appnextBinding.init("ea1fc8a4-b7b5-493e-9680-c0e8fd2ac257");
  8. #endif
  9. }
  10. // Update is called once per frame
  11. void Update () {
  12. if (name.Equals("GC"))
  13. {
  14. //if (GameCenterBinding.isPlayerAuthenticated())
  15. {
  16. gameObject.SetActive(false);
  17. }
  18. }
  19. }
  20. void OnClick()
  21. {
  22. if (name.Equals("AppNext"))
  23. {
  24. #if UNITY_IOS
  25. Debug.Log("appnextBinding.showPopup();");
  26. //appnextBinding.showPopup();
  27. #endif
  28. }
  29. if (name.Equals("GC"))
  30. {
  31. #if UNITY_IOS
  32. Debug.Log("GameCenterBinding.authenticateLocalPlayer()");
  33. //GameCenterBinding.authenticateLocalPlayer();
  34. #endif
  35. }
  36. }
  37. }