/// <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); }
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); }
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(); }
/// 连接上服务器 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); }
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); }
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); }
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); }
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(); }
private void CheckIfCreatRoute() { //if(countFinish&& initFinish && visualizerFinish) if (initFinish && visualizerFinish) { if (SingletonMB <OperationController> .GetInstance().ifDirections) { StartCoroutine(CreatRoute()); } else { CallLocation(); } } }
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; } }
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); }
public override void OnExit() { UITweener twPos = CreateTweener(topUiTrans, TweenType.TOP_OUT); SingletonMB<UITweenManagerController>.GetInstance().AddTweener(twPos); }
private void OnLoginEnter(EventObject e) { Singleton <ModuleEventDispatcher> .GetInstance().addEvent(ModuleEventDispatcher.IMAGE_LOAD_COMPLETE, OnImageLoaded); SingletonMB <HttpWebManagerControoler> .GetInstance().DownloadTargetImage(); }
void OnTargetFound(TargetAbstractBehaviour behaviour) { //Debug.Log("Found: " + Target.Id); SingletonMB <HttpWebManagerControoler> .GetInstance().DownloadImageData(gameObject.name); }
private void CallLocation() { //if (tht) tht.LoactionTheModel(); SingletonMB <OperationController> .GetInstance().PutTheModel(); }