Esempio n. 1
0
 public override void OnUIEvent(XLAF_UIEvent e)
 {
     if (e.phase == Phase.Click)
     {
         if (e.target.name == "Button")
         {
             btn_click();
         }
     }
 }
Esempio n. 2
0
 public override void OnUIEvent(XLAF_UIEvent e)
 {
     //        Log.Debug ("OnUIEvent", e);
     if (e.phase == Phase.Click)
     {
         if (e.target.name == "btn_button")
         {
             btn_click();
         }
     }
 }
Esempio n. 3
0
 public override void OnUIEvent(XLAF_UIEvent e)
 {
     if (e.phase == Phase.Click)
     {
         if (e.target.name == "btn_ok")
         {
             InvokeCallback(inputField.text.ToLower());
             MgrPopup.Hide("XLAFBackdoor", SceneAnimation.none);
         }
         else if (e.target.name == "btn_cancel")
         {
             MgrPopup.Hide("XLAFBackdoor", SceneAnimation.none);
         }
     }
 }
Esempio n. 4
0
    public override void OnUIEvent(XLAF_UIEvent e)
    {
        Log.Debug("OnUIEvent", e);
        if (e.phase == Phase.Click)
        {
            if (e.target.name == "btn1")
            {
                //        MgrAudio.PlaySound ("s_click");
                MgrScene.GotoScene("Scene2", "0000123", Main.anim, 1f, () => {
                    Log.Debug("Scene2 Done~");
                });
                //

//                MgrPopup.Show ("Popup1", "55892", SceneAnimation.fade, 1f, () => {
//                    Log.Debug ("Popup1 Done~");
//                });

                                #if UNITY_ANDROID && !UNITY_EDITOR
                AndroidJavaClass jc     = new AndroidJavaClass("plugintest.albert.mylibrary.PhoneInfo");
                string           module = jc.CallStatic <string> ("getPhoneModule");

                AndroidJavaObject telephonyManager = new AndroidJavaObject("android.telephony.TelephonyManager");
                string            did = telephonyManager.Call <string> ("getLine1Number");

//                string did = jc.CallStatic<string> ("getDeviceId");
                string totalMemory = jc.CallStatic <string> ("getTotalMemory");
//                string phoneNumber = jc.CallStatic<string> ("getPhoneNumber");
                string[] cpu = jc.CallStatic <string[]> ("getCpuInfo");
                Log.Debug("~~~~~:", module, "|", did, "|", totalMemory, "|", cpu [0], "|", cpu [1]);
                                #endif
            }
            else if (e.target.name == "btn2")
            {
                MgrPopup.Show("Popup2", "2222", SceneAnimation.fade, 1f, () => {
                    Log.Debug("Popup2 Done~");
                });
            }
        }
    }