当前位置: 首页 > news >正文

受欢迎的建网站哪家好标志设计作业

受欢迎的建网站哪家好,标志设计作业,wordpress安装字体,wordpress文章编辑慢基于“RPG项目01_脚本代码”#xff0c;本次修改unity的新输入输出系统。本次修改unity需要重启#xff0c;如果一直跟着做教学项目#xff0c;请先保存项目#xff0c;再继续修改unity为新输入输出系统。 向下翻#xff0c; 向下翻#xff0c; 选择both加入新输入输出系…基于“RPG项目01_脚本代码”本次修改unity的新输入输出系统。本次修改unity需要重启如果一直跟着做教学项目请先保存项目再继续修改unity为新输入输出系统。 向下翻 向下翻 选择both加入新输入输出系统此时unity会重新启动。 设置完成加入新输入输出系统 点击包管理器 安装成功 在脚本文件夹Scripts下新建文件夹InputSystem 将New Controls改名为Controls 并将生成脚本打勾 之后应用 即可生成Controls脚本 此时MyPlayer脚本代码中的Controls的注释可以打开了 双击Controls 点击加号起名为MyCtrl 点击加号设置为一轴的 设置完成 继续设置下一个按键 设置完成 保存 修改MyPlayer代码 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         SetInput();     }     void Update() {          }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;     }     private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     } } 运行即可实现按键盘w/s键实现跑步松开即停止 接下来添加跳跃 修改MyPlayer代码 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         SetInput();     }     void Update() {          }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;     } private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     } } 即实现 按空格键Space跳跃 接下来设置旋转 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         SetInput();     }     void Update() {          }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;         action.MyCtrl.Rotate.started Rotate;         action.MyCtrl.Rotate.performed Rotate;     }     private void Rotate(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         rvalue context.ReadValuefloat();     }     private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     }     private void FastSpeed(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) || Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace))         {             if (context.phase InputActionPhase.Canceled)             {                 spdFast 1;             }             else             {                 spdFast 2;             }         }     } } 接下来设置速度 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         SetInput();     }     void Update() {          }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;         action.MyCtrl.Rotate.started Rotate;         action.MyCtrl.Rotate.performed Rotate;         action.MyCtrl.Fast.started FastSpeed;         action.MyCtrl.Fast.performed FastSpeed;         action.MyCtrl.Fast.canceled FastSpeed;     }     private void FastSpeed(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace))         {             if (context.phase InputActionPhase.Canceled)             {                 spdFast 1;             }             else             {                 spdFast 2;             }         }     }     private void Rotate(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         rvalue context.ReadValuefloat();     }     private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     } } 设置获取道具 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         SetInput();     }     void Update() {          }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;         action.MyCtrl.Rotate.started Rotate;         action.MyCtrl.Rotate.performed Rotate;         action.MyCtrl.Fast.started FastSpeed;         action.MyCtrl.Fast.performed FastSpeed;         action.MyCtrl.Fast.canceled FastSpeed;         action.MyCtrl.GetTool.started ClickNpcAndTool;     }     private void ClickNpcAndTool(InputAction.CallbackContext context)     {         //throw new NotImplementedException();     }     private void FastSpeed(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace))         {             if (context.phase InputActionPhase.Canceled)             {                 spdFast 1;             }             else             {                 spdFast 2;             }         }     }     private void Rotate(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         rvalue context.ReadValuefloat();     }     private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     } } 添加输入系统 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         //获取自身角色控制器         contro GetComponentCharacterController();         SetInput();     }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;         action.MyCtrl.Rotate.started Rotate;         action.MyCtrl.Rotate.performed Rotate;         action.MyCtrl.Fast.started FastSpeed;         action.MyCtrl.Fast.performed FastSpeed;         action.MyCtrl.Fast.canceled FastSpeed;         action.MyCtrl.GetTool.started ClickNpcAndTool;         action.MyCtrl.HoldRotate.performed Hold;         action.MyCtrl.HoldRotate.canceled Hold;     }     private void Hold(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (context.phase InputActionPhase.Canceled)         {             isHold false;         }         else         {             isHold true;         }     }     private void ClickNpcAndTool(InputAction.CallbackContext context)     {         //throw new NotImplementedException();     }     private void FastSpeed(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace))         {             if (context.phase InputActionPhase.Canceled)             {                 spdFast 1;             }             else             {                 spdFast 2;             }         }     }     private void Rotate(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         rvalue context.ReadValuefloat();     }     private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     }     void Ctrl()     {         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle)||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle_Fight)){             float f action.MyCtrl.Move.ReadValuefloat();             contro.Move(transform.forward * f * Time.deltaTime * spdFast * Spd);             contro.Move(transform.up * -9.8f * Time.deltaTime);             if (isHold)             {                 transform.Rotate(transform.up * rvalue * 0.3f);             }         }     }     void Update()     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         Ctrl();     } }   修改MyPlayer代码 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         //获取自身角色控制器         contro GetComponentCharacterController();         SetInput();     }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;         action.MyCtrl.Rotate.started Rotate;         action.MyCtrl.Rotate.performed Rotate;         action.MyCtrl.Fast.started FastSpeed;         action.MyCtrl.Fast.performed FastSpeed;         action.MyCtrl.Fast.canceled FastSpeed;         action.MyCtrl.GetTool.started ClickNpcAndTool;     }     private void ClickNpcAndTool(InputAction.CallbackContext context)     {         //throw new NotImplementedException();     }     private void FastSpeed(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace))         {             if (context.phase InputActionPhase.Canceled)             {                 spdFast 1;             }             else             {                 spdFast 2;             }         }     }     private void Rotate(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         rvalue context.ReadValuefloat();     }     private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     }     void Ctrl()     {         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle)||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle_Fight)){             float f action.MyCtrl.Move.ReadValuefloat();             contro.Move(transform.forward * f * Time.deltaTime * spdFast * Spd);             contro.Move(transform.up * -9.8f * Time.deltaTime);             if (isHold)             {                 transform.Rotate(transform.up * rvalue * 0.3f);             }         }     }     void Update()     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         Ctrl();     } } 即可实现人物前后移动 继续设置拔剑 设置攻击 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         //获取自身角色控制器         contro GetComponentCharacterController();         SetInput();     }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;         action.MyCtrl.Rotate.started Rotate;         action.MyCtrl.Rotate.performed Rotate;         action.MyCtrl.Fast.started FastSpeed;         action.MyCtrl.Fast.performed FastSpeed;         action.MyCtrl.Fast.canceled FastSpeed;         action.MyCtrl.GetTool.started ClickNpcAndTool;         action.MyCtrl.HoldRotate.performed Hold;         action.MyCtrl.HoldRotate.canceled Hold;         action.MyAtt.Att.started Attack;     }     private void Attack(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (EventSystem.current.IsPointerOverGameObject())         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle_Fight))         {             Anim.SetInteger(Att, 1);             Anim.SetTrigger(AttTrigger); }         else         {             int num Anim.GetInteger(Att);             if (num 6)             {                 return;             }             if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Light_Attk_ num))             {                 Anim.SetInteger(Att, num 1);             }         }     }     public void PlayerAttack(string hurt)     {         Collider[] cs Physics.OverlapBox(attPoint.position, Vector3.one * 0.5f,             attPoint.rotation, LayerMask.GetMask(Enemy));         if (cs.Length 0)         {             return;         }         int value (int)(Att * Anim.GetInteger(Att) * 0.5f);         foreach (Collider c in cs)         {             print(value);         }     } public void PlayerAttackHard(string hurt)     {         Collider[] cs Physics.OverlapBox(attPoint.position, Vector3.one * 0.5f,             attPoint.rotation, LayerMask.GetMask(Enemy));         if (cs.Length 0)         {             return;         }         int value (int)(Att * Anim.GetInteger(Att) * 0.5f);         foreach (Collider c in cs)         {             print(value);             print(让敌人播放击倒特效);         }     }     private void Hold(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (context.phase InputActionPhase.Canceled)         {             isHold false;         }         else         {             isHold true;         }     }     private void ClickNpcAndTool(InputAction.CallbackContext context)     {         //throw new NotImplementedException();     }     private void FastSpeed(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace))         {             if (context.phase InputActionPhase.Canceled)             {                 spdFast 1;             }             else             {                 spdFast 2;             }         }     }     private void Rotate(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         rvalue context.ReadValuefloat();     }     private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     }     void Ctrl()     {         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle)||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle_Fight)){             float f action.MyCtrl.Move.ReadValuefloat();             contro.Move(transform.forward * f * Time.deltaTime * spdFast * Spd);             contro.Move(transform.up * -9.8f * Time.deltaTime);             if (isHold)             {                 transform.Rotate(transform.up * rvalue * 0.3f);             }         }     }     void Update()     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         Ctrl();     } } using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.InputSystem; using UnityEngine.UI; public class MyPlayer : People{     [Header(子类变量)]     public Transform toolPanel;//道具面板     public Transform skillPanel;//技能面板     //public BagPanel bag;//背包 CharacterController contro;     Controls action; float rvalue;     float spdFast 1;     bool isHold;//握刀     GameObject sword;     GameObject swordBack;     public Image imageHp;     public Image imageMp;     new void Start() {         base.Start();         //获取自身角色控制器         contro GetComponentCharacterController();         SetInput();     }     void SetInput(){         action new Controls();         action.Enable();         action.MyCtrl.Move.started Move;         action.MyCtrl.Move.performed Move;         action.MyCtrl.Move.canceled StopMove;         action.MyCtrl.Jump.started Jump;         action.MyCtrl.Rotate.started Rotate;         action.MyCtrl.Rotate.performed Rotate;         action.MyCtrl.Fast.started FastSpeed;         action.MyCtrl.Fast.performed FastSpeed;         action.MyCtrl.Fast.canceled FastSpeed;         action.MyCtrl.GetTool.started ClickNpcAndTool;         action.MyCtrl.HoldRotate.performed Hold;         action.MyCtrl.HoldRotate.canceled Hold;         action.MyAtt.Att.started Attack;         action.MyAtt.SwordOut.started SwordOut;     }     private void SwordOut(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         Anim.SetBool(SwordOut, !Anim.GetBool(SwordOut));     }     private void Attack(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (EventSystem.current.IsPointerOverGameObject())         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle_Fight))         {             Anim.SetInteger(Att, 1);             Anim.SetTrigger(AttTrigger); }         else         {             int num Anim.GetInteger(Att);             if (num 6)             {                 return;             }             if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Light_Attk_ num))             {                 Anim.SetInteger(Att, num 1);             }         }     }     public void PlayerAttack(string hurt)     {         Collider[] cs Physics.OverlapBox(attPoint.position, Vector3.one * 0.5f,             attPoint.rotation, LayerMask.GetMask(Enemy));         if (cs.Length 0)         {             return;         }         int value (int)(Att * Anim.GetInteger(Att) * 0.5f);         foreach (Collider c in cs)         {             print(value);         }     } public void PlayerAttackHard(string hurt)     {         Collider[] cs Physics.OverlapBox(attPoint.position, Vector3.one * 0.5f,             attPoint.rotation, LayerMask.GetMask(Enemy));         if (cs.Length 0)         {             return;         }         int value (int)(Att * Anim.GetInteger(Att) * 0.5f);         foreach (Collider c in cs)         {             print(value);             print(让敌人播放击倒特效);         }     }     private void Hold(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (context.phase InputActionPhase.Canceled)         {             isHold false;         }         else         {             isHold true;         }     }     private void ClickNpcAndTool(InputAction.CallbackContext context)     {         //throw new NotImplementedException();     }     private void FastSpeed(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace))         {             if (context.phase InputActionPhase.Canceled)             {                 spdFast 1;             }             else             {                 spdFast 2;             }         }     }     private void Rotate(InputAction.CallbackContext context)     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         rvalue context.ReadValuefloat();     }     private void Jump(InputAction.CallbackContext obj){         Anim.SetTrigger(Jump);     } private void StopMove(InputAction.CallbackContext context){         Anim.SetBool(IsRun, false);     }     private void Move(InputAction.CallbackContext context){         if (GameManager.gameState ! GameState.Play) {             return;         }         Anim.SetBool(IsRun, true);     }     void Ctrl()     {         if (Anim.GetCurrentAnimatorStateInfo(0).IsName(Run) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Run_Inplace) ||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle)||             Anim.GetCurrentAnimatorStateInfo(0).IsName(Idle_Fight)){             float f action.MyCtrl.Move.ReadValuefloat();             contro.Move(transform.forward * f * Time.deltaTime * spdFast * Spd);             contro.Move(transform.up * -9.8f * Time.deltaTime);             if (isHold)             {                 transform.Rotate(transform.up * rvalue * 0.3f);             }         }     }     void Update()     {         if (GameManager.gameState ! GameState.Play)         {             return;         }         Ctrl();     } } 在运行前将手中刀隐藏 运行按E键拔刀后鼠标左键点击即实现连招 具体操作运行后w/s键前后移动按E键拔刀拔刀后才可以攻击一直点击鼠标左键执行连击按空格跳跃鼠标右键旋转视角。
http://wiki.neutronadmin.com/news/353693/

相关文章:

  • 国外简约企业网站磁力链接 网站怎么做的
  • 龙岗网站建设价位微信公众号搭建微网站
  • 签订网站建设协议 注意事项海尔公司网站建设现状
  • 音乐网站开发的意义怎么制作网站链接手机
  • 网站建设归工商局管还是工信局管wordpress清除主题信息
  • 怎么用linux做网站跨境电商是什么意思
  • 网站设计流程及制作流程wordpress 远程 mysql
  • 网站首页做30个关键词wordpress主题怎么上传
  • 建设众筹网站盘锦做网站哪家好
  • 可以做水印的网站seo的实现方式
  • 陕西省交通建设集团公司门户网站手机网站 侧边栏导航
  • 合肥最好的网站建设公司排名qq钓鱼网站生成器手机版
  • 好玩的网站源码经营管理系统
  • 做网站公司做网站公司有哪些制作论坛类网站模板免费下载
  • 成都网站建设 培训学校网站制作应用
  • 开创云网站建设网站做端口是什么情况
  • 怎么做考试资料分享网站简洁的网站建设合同
  • 电子商务网站建设配置wordpress网盘搜索引擎源码
  • 网页游戏网站mhn免费下载建筑图纸的网站
  • iis怎么做ip网站吗简单风景网站模版
  • 网站开发的类型学校加强网站建设
  • vue.js做个人网站有没有网站
  • 温州网站制作要多少钱j建设网站
  • 网站后台如何添加代码自己建设影视网站
  • 自学做网站要多久wordpress 页面很窄
  • 陕西自助建站做网站做网站前需要做什么准备
  • 深圳市网站建设平台宁波网站推广平台咨询
  • 聊城做网站的公司流程线上WordPress移到本地
  • 深圳做h5网站wordpress怎样建立二级菜单
  • 大兴区企业网站建设酒店品牌策划方案