Ejemplo n.º 1
0
 static int Close(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIMgr    obj  = (UIMgr)ToLua.CheckObject <UIMgr>(L, 1);
         UISystem arg0 = (UISystem)ToLua.CheckObject <UISystem>(L, 2);
         obj.Close(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
    public void SelectSceneProcess()
    {
        UIMgr.Close("UIPanel/LoginPanel");

        iTween.RotateTo(CameraManager.instance.mainCamera.gameObject, iTween.Hash("time", 2f
                                                                                  , "easetype", iTween.EaseType.linear
                                                                                  , "rotation", new Vector3(-0.6000061f, -155.66f, 2.49f)
                                                                                  //, "rotation", new Vector3(6.73f, -155.66f, 2.49f)
                                                                                  //, "rotation", new Vector3(11.77262f, -159.8964f, 2.135164f)
                                                                                  , "oncomplete", "RotateSelectHeroEnd"
                                                                                  , "oncompletetarget", this.gameObject));
        iTween.MoveTo(CameraManager.instance.mainCamera.gameObject, iTween.Hash("time", 2f
                                                                                , "easetype", iTween.EaseType.linear
                                                                                , "position", new Vector3(5.47f, 1.35f, 21.05f)
                                                                                //, "position", new Vector3(4.8f, 1.18f, 20.38f)
                                                                                //, "position", new Vector3(4.58f, 2.35f, 20.38f)
                                                                                //, "position", new Vector3(5.16f, 3.51f, 23.54f)
                                                                                ));
    }