void Update() { //"Effect/effect_skill_daobin_01_pugong_gmale.res"; CheckClickSceneObject(); if ( SceneLogic.GetInstance() != null && CMDView.GetInstance() != null && !CMDView.GetInstance().IsEditing() ) { if (Input.GetKeyDown(KeyCode.U)) { if (SceneLogic.GetInstance().MainHero.GetCurActionName().CompareTo("ActionDie") == 0) { SceneLogic.GetInstance().MainHero.Net.SendReliveRequest(true); } } else if (Input.GetKeyDown(KeyCode.Alpha0)) { SceneLogic.GetInstance().MainHero.property.CmdAutoAttack = true; } } //鼠标点击或者鼠标帧移动时间间隔到.. if (UICamera.hoveredObject == null) { if (CursorManager.GetInstance().IsDragging()) { if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1)) { CursorManager.GetInstance().ClearDragCursor(); } return; } MouseSceneHandler(); } else { if (DragItem.isDragging) { return; } CursorManager.GetInstance().SetCursor(CursorType.ctNormal); } }
public object OnInitSceneUI(params object[] objs) { //--------- menu begin-------------------------- ButtonBarView.GetInstance().viewType = ViewType.Menu; //ShortcutView.GetInstance(); //old view CMDView.GetInstance().viewType = ViewType.Menu; HitPanelView.GetInstance().viewType = ViewType.Menu; HeroMenuView.GetInstance().viewType = ViewType.Menu; //HeadView.GetInstance();//old view MinMapView.GetInstance().viewType = ViewType.Menu; if (PlayerManager.GetInstance().MajorPlayer.level >= 14) { MissionFollowListView.GetInstance().viewType = ViewType.Menu; } else { MissionFollowView.GetInstance().viewType = ViewType.Menu; } TopRightMenuView.GetInstance().viewType = ViewType.Menu; PveProcessView.GetInstance().viewType = ViewType.Menu; //-----------menu end-------------------- //-----------window begin----------------- PveView.GetInstance(); PveQuitView.GetInstance(); PveAutoFight.GetInstance(); //-----------window end------------------- //----------Tip begin----------- PveFailView.GetInstance(); ReliveView.GetInstance(); //----------Tip end------------- return(null); }