12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using UnityEngine;
- using System.Collections;
- public class AppNextTest : MonoBehaviour {
- // Use this for initialization
- void Start () {
- #if UNITY_IOS
- // appnextBinding.init("ea1fc8a4-b7b5-493e-9680-c0e8fd2ac257");
- #endif
- }
-
- // Update is called once per frame
- void Update () {
- if (name.Equals("GC"))
- {
- //if (GameCenterBinding.isPlayerAuthenticated())
- {
- gameObject.SetActive(false);
- }
- }
- }
- void OnClick()
- {
- if (name.Equals("AppNext"))
- {
- #if UNITY_IOS
- Debug.Log("appnextBinding.showPopup();");
- //appnextBinding.showPopup();
- #endif
- }
- if (name.Equals("GC"))
- {
- #if UNITY_IOS
- Debug.Log("GameCenterBinding.authenticateLocalPlayer()");
- //GameCenterBinding.authenticateLocalPlayer();
- #endif
- }
- }
- }
|