/// <summary> /// 摇杆旋转 /// </summary> /// <param name="dir"></param> void OnJoyStickRotation(Vector3 dir) { RotationCommand cmd = IInputProxyBase.GetEvent <RotationCommand>("RotationCommand"); cmd.m_dir = dir; InputManager.Dispatch("RotationCommand", cmd); }
/// <summary> /// 摇杆移动 /// </summary> /// <param name="dir"></param> void OnJoyStickMove(Vector3 dir) { InputMoveCommand cmd = IInputProxyBase.GetEvent <InputMoveCommand>("InputMoveCommand"); cmd.m_dir = dir; InputManager.Dispatch("InputMoveCommand", cmd); }