Ejemplo n.º 1
0
    /// <summary>
    /// 丢失链接
    /// </summary>
    void OnDisconnected(ushort dis, string msg)
    {
        Logout();
        SingletonMB <NetworkManagerController> .GetInstance().AddEvent(dis, null);

        Debuger.Log("Connection was closed :>" + msg + " Distype:>" + dis);
//		Debuger.LogWarning("Connection was closed by the server:>" + msg + " Distype:>" + dis);
    }
Ejemplo n.º 2
0
    public override void OnExit()
    {
        UITweener twPos = CreateTweener(mainUiTrans, TweenType.BOTTOM_OUT);

        twPos.onEnd = ExitHandle;
        SingletonMB <UITweenManagerController> .GetInstance().AddTweener(twPos);

        //twPos = CreateTweener(topUiTrans, TweenType.TOP_OUT);
        //      SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos);
    }
Ejemplo n.º 3
0
    private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
    {
        return;

        SceneManager.sceneLoaded -= OnSceneLoaded;
        Debug.Log("OnSceneLoaded: " + scene.name);
        Debug.Log(mode);
        Singleton <ModuleEventDispatcher> .GetInstance().addEvent(ModuleEventDispatcher.IMAGE_LOAD_COMPLETE, OnImageLoaded);

        SingletonMB <HttpWebManagerControoler> .GetInstance().DownloadTargetImage();
    }
Ejemplo n.º 4
0
 /// 连接上服务器
 void OnConnect(IAsyncResult asr)
 {
     if (client == null || !client.Connected)
     {
         return;
     }
     allDone.Set();
     client.EndConnect(asr);
     client.BeginReceive(byteBuffer, 0, MAX_READ, SocketFlags.None, readCallBack, null);
     SingletonMB <NetworkManagerController> .GetInstance().AddEvent(NET_TYPE.CONNECT, null);
 }
Ejemplo n.º 5
0
 public void OnPointerDown(PointerEventData eventData)
 {
     if (ts == null)
     {
         ts = new TweenScale();
     }
     ts.from      = Normal;
     ts.to        = Pressed;
     ts.duration  = duration;
     ts.Transform = tweenTarget;
     SingletonMB <UITweenManagerController> .GetInstance().AddTweener(ts);
 }
Ejemplo n.º 6
0
    protected override void InitEffect()
    {
        UITweener twPos = CreateTweener(mainUiTrans, TweenType.BOTTOM_IN);

        SingletonMB <UITweenManagerController> .GetInstance().AddTweener(twPos);

        //twPos = CreateTweener(topUiTrans, TweenType.TOP_IN);
        //SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos);

        //twPos = CreateTweener(leftUiTrans, TweenType.LEFT_IN);
        //      SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos);
    }
Ejemplo n.º 7
0
    protected override void InitEffect()
    {
        //UITweener twPos = CreateTweener(mainUiTrans, TweenType.BOTTOM_IN);
        //SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos);
        if (webExporlerTrans)
        {
            uniWebView = webExporlerTrans.gameObject.AddComponent <UniWebView>();
        }
        InitUniWebView();
        UITweener twPos = CreateTweener(topUiTrans, TweenType.TOP_IN);

        SingletonMB <UITweenManagerController> .GetInstance().AddTweener(twPos);
    }
Ejemplo n.º 8
0
    public void LoactionTheModel()
    {
        SetVerticeData();
        showPerfabs.transform.position = targetPosition + Vector3.down * upHeight;
        showPerfabs.transform.rotation = targetRotation;

        Hashtable hash = new Hashtable();

        hash.Add("position", targetPosition);
        hash.Add("time", 1);
        hash.Add("delay", 0.5f);
        iTween.MoveTo(showPerfabs, hash);
        SingletonMB <ARGeneratePlane> .GetInstance().HidePlane();
    }
Ejemplo n.º 9
0
 private void CheckIfCreatRoute()
 {
     //if(countFinish&& initFinish && visualizerFinish)
     if (initFinish && visualizerFinish)
     {
         if (SingletonMB <OperationController> .GetInstance().ifDirections)
         {
             StartCoroutine(CreatRoute());
         }
         else
         {
             CallLocation();
         }
     }
 }
Ejemplo n.º 10
0
    override protected void OnClick(GameObject obj)
    {
        switch (obj.name)
        {
        case "LoginBtn":
            Debuger.Log("click LoginBtn");
            //OnLogIn();
            Singleton <ModuleEventDispatcher> .GetInstance().addEvent(ModuleEventDispatcher.GAME_LOAD_START, OnLoginEnter);

            SingletonMB <HttpWebManagerControoler> .GetInstance().OnLogIn();

            break;

        case "SettingBtn":
            break;
        }
    }
Ejemplo n.º 11
0
    public override void OnExit()
    {
        Destroy(uniWebView);
        uniWebView = null;
        webExporlerTrans.gameObject.SetActive(false);
        //UITweener twPos = CreateTweener(mainUiTrans, TweenType.BOTTOM_OUT);
        //twPos.onEnd = ExitHandle;
        //SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos);

        UITweener twPos = CreateTweener(topUiTrans, TweenType.TOP_OUT);

        twPos.onEnd = ExitHandle;
        SingletonMB <UITweenManagerController> .GetInstance().AddTweener(twPos);

//        twPos = CreateTweener(mainUiTrans, TweenType.TOP_OUT);
//        SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos);
    }
Ejemplo n.º 12
0
 public override void OnExit()
 {
     UITweener twPos = CreateTweener(topUiTrans, TweenType.TOP_OUT);
     SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos);
 }
Ejemplo n.º 13
0
    private void OnLoginEnter(EventObject e)
    {
        Singleton <ModuleEventDispatcher> .GetInstance().addEvent(ModuleEventDispatcher.IMAGE_LOAD_COMPLETE, OnImageLoaded);

        SingletonMB <HttpWebManagerControoler> .GetInstance().DownloadTargetImage();
    }
Ejemplo n.º 14
0
 void OnTargetFound(TargetAbstractBehaviour behaviour)
 {
     //Debug.Log("Found: " + Target.Id);
     SingletonMB <HttpWebManagerControoler> .GetInstance().DownloadImageData(gameObject.name);
 }
Ejemplo n.º 15
0
 private void CallLocation()
 {
     //if (tht) tht.LoactionTheModel();
     SingletonMB <OperationController> .GetInstance().PutTheModel();
 }