void NewKey() { //ShouBing(); if (Input.GetKeyDown(KeyCode.U) && Input.GetKey(KeyCode.D)) { //if (IsCanControl()) _body.GetSkill1(); //print("技能释放--------- right "); ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.RELEASE_SKILL, "center"), this); return; } if (Input.GetKeyDown(KeyCode.U) && Input.GetKey(KeyCode.W)) { //if (IsCanControl()) _body.GetSkill1(); //print("技能释放--------- up"); ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.RELEASE_SKILL, "up"), this); return; } if (Input.GetKeyDown(KeyCode.U) && Input.GetKey(KeyCode.S)) { //if (IsCanControl()) _body.GetSkill1(); //print("技能释放--------- down"); ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.RELEASE_SKILL, "down"), this); return; } if (Input.GetKeyDown(KeyCode.U)) { //if (IsCanControl()) _body.GetSkill1(); //print("技能释放--------- center"); ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.RELEASE_SKILL, "center"), this); return; } if (Input.GetKeyDown(KeyCode.I) && Input.GetKey(KeyCode.W)) { ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.DIU_FEIDAO, "up"), this); return; } if (Input.GetKeyDown(KeyCode.I) && Input.GetKey(KeyCode.S)) { ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.DIU_FEIDAO, "down"), this); return; } if (Input.GetKeyDown(KeyCode.I)) { //print("i"); ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.DIU_FEIDAO, ""), this); return; } if (Input.GetKeyDown(KeyCode.W)) { //print(" W----upupupupupup!!! "); IsInShoubing = false; Globals.isKeyUp = true; } if (Input.GetKeyDown(KeyCode.S)) { IsInShoubing = false; Globals.isKeyDown = true; } if (Input.GetKeyUp(KeyCode.W)) { Globals.isKeyUp = false; IsInShoubing = false; } if (Input.GetKeyUp(KeyCode.S)) { Globals.isKeyDown = false; IsInShoubing = false; } if (Input.GetKeyUp(KeyCode.T)) { //测试用 _body.GetSit2(); } if (Input.GetKey(KeyCode.A)) { IsInShoubing = false; if (IsCanControl()) { _body.RunLeft(-1f); } } else if (Input.GetKey(KeyCode.D)) { IsInShoubing = false; if (IsCanControl()) { _body.RunRight(1f); } } else { if (IsCanControl() && !Globals.isXNBtn) { _body.ReSetLR(); } } /*if (Input.GetKeyUp(KeyCode.A)) * { * if (IsCanControl() && !Globals.isXNBtn) _body.ReSetLR(); * } * * if (Input.GetKeyUp(KeyCode.D)) * { * * if (IsCanControl() && !Globals.isXNBtn) _body.ReSetLR(); * }*/ if (Input.GetKeyDown(KeyCode.H)) { //if (IsCanControl()) _body.GetSkill1(); //print("技能释放--------- center"); //ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.RELEASE_SKILL, "center"), this); if (IsCanControl()) { _body.Gedang(); } return; } if (Input.GetKeyDown(KeyCode.J)) { if (Globals.IsHitPlotKuai) { return; } //print(">>>>>>>>>>>??????? JJJJJJJ Globals.isKeyUp "+ Globals.isKeyUp); if (IsCanControl()) { _body.GetAtk(); } } if (Input.GetKeyDown(KeyCode.K)) { if (IsCanControl()) { _body.GetJump(); } } if (Input.GetKeyDown(KeyCode.U)) { //if (IsCanControl()) _body.GetSkill1(); } if (Input.GetKeyDown(KeyCode.I)) { if (IsCanControl()) { _body.GetSkill2(); } } if (Input.GetKeyDown(KeyCode.L)) { if (IsCanControl()) { _body.GetDodge1(); } } }