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

做网站的公司地址百度官方app免费下载

做网站的公司地址,百度官方app免费下载,做医疗健康类网站需要资质吗,网站建设网站需求分析报告功能1、挂载脚本到角色的父物体A上 2 、以屏幕左边的触摸为移动,右边为转向操作 3、加载角色时,将角色的父物体设置为A,须将角色的位置和角度置0 using System; using System.Collections; using System.Collections.Generic; using UnityEngin…

1、挂载脚本到角色的父物体A上

2 、以屏幕左边的触摸为移动,右边为转向操作

3、加载角色时,将角色的父物体设置为A,须将角色的位置和角度置0

在这里插入图片描述

在这里插入图片描述

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;public class TouchMove : MonoBehaviour
{public float x = 189f;public float y = 1f;public float z = 562f;[SerializeField]private Transform camera;public float dx = 2;public float dy = 14;public float dz = -10;public int speed = 8;public int roteSpeed = 45;public Vector3 dretOne = Vector3.zero;public bool if_move = false;public bool if_rote = false;Vector2 deltaPos = Vector2.zero;int roteDirt =0;public int screenWidth = Screen.width;public int screenHeight = Screen.height;// Start is called before the first frame updatevoid Start(){}// Update is called once per framevoid Update(){if (Input.touchCount == 1){Touch touch = Input.GetTouch(0);if (touch.position.x < screenWidth / 2){checkMove(touch);}else if(touch.position.x > screenWidth / 2){checkRote(touch);}} else if (Input.touchCount > 1){Touch touch1 = Input.GetTouch(0);Touch touch2 = Input.GetTouch(1);if (touch1.position.x < screenWidth / 2){checkMove(touch1);}else if (touch1.position.x > screenWidth / 2){checkRote(touch1);}if (touch2.position.x < screenWidth / 2){checkMove(touch2);}else if (touch2.position.x > screenWidth / 2){checkRote(touch2);}}if (if_move){Move();}if (if_rote){Rote();}//CameraLook();}void checkRote(Touch touch){if (touch.phase == TouchPhase.Began){Debug.Log("Touch began");if_rote = true;Debug.Log("触碰位置:" + touch.position);}else if (touch.phase == TouchPhase.Moved  ){deltaPos = touch.deltaPosition;if (Math.Abs(deltaPos.x) > 2  ){if(deltaPos.x<0){roteDirt = -1;}else{roteDirt =  1;}}Debug.Log("Touch moved:" + deltaPos);}else if (touch.phase == TouchPhase.Ended){Debug.Log("Touch ended");if_rote = false;roteDirt = 0;}}void checkMove(Touch touch){deltaPos = touch.deltaPosition;if (touch.phase == TouchPhase.Began){Debug.Log("Touch began");if_move = true;Debug.Log("触碰位置:" + touch.position);}if (touch.phase == TouchPhase.Moved ){if (Math.Abs(deltaPos.x) > 2 || Math.Abs(deltaPos.y) > 2){dretOne = new Vector3(deltaPos.x, 0, deltaPos.y).normalized;}Debug.Log("Touch moved:" + deltaPos);}else if (touch.phase == TouchPhase.Ended){Debug.Log("Touch ended");if_move = false;dretOne = Vector3.zero;}}void Rote(){transform.Rotate(Vector3.up * roteDirt*roteSpeed * Time.deltaTime, Space.Self);}void Move(){transform.localPosition += dretOne * Time.deltaTime * speed;}public void BackBtn(){transform.position = new Vector3(x, y, z);}void CameraLook(){camera.position = transform.position + new Vector3(dx, dy, dz);}
}

文章转载自:
http://sanmartinite.hqbk.cn
http://quinquagesima.hqbk.cn
http://esro.hqbk.cn
http://devotee.hqbk.cn
http://romanes.hqbk.cn
http://resegmentation.hqbk.cn
http://enneastylos.hqbk.cn
http://trigamy.hqbk.cn
http://slatter.hqbk.cn
http://wandering.hqbk.cn
http://abstrusity.hqbk.cn
http://renvoi.hqbk.cn
http://argonautic.hqbk.cn
http://redward.hqbk.cn
http://nerol.hqbk.cn
http://monellin.hqbk.cn
http://disable.hqbk.cn
http://shorthand.hqbk.cn
http://affluently.hqbk.cn
http://multifid.hqbk.cn
http://chiliasm.hqbk.cn
http://nobleness.hqbk.cn
http://noumenon.hqbk.cn
http://emetic.hqbk.cn
http://inequilaterally.hqbk.cn
http://paramenstruum.hqbk.cn
http://fusional.hqbk.cn
http://superpipeline.hqbk.cn
http://campestral.hqbk.cn
http://meandrine.hqbk.cn
http://contracture.hqbk.cn
http://nonpolitical.hqbk.cn
http://unorthodox.hqbk.cn
http://geosynclinal.hqbk.cn
http://flammable.hqbk.cn
http://ranking.hqbk.cn
http://rehire.hqbk.cn
http://outpace.hqbk.cn
http://halite.hqbk.cn
http://jules.hqbk.cn
http://artificially.hqbk.cn
http://riad.hqbk.cn
http://instrument.hqbk.cn
http://replicate.hqbk.cn
http://finecomb.hqbk.cn
http://madonna.hqbk.cn
http://expostulatingly.hqbk.cn
http://semimajor.hqbk.cn
http://phlegmatic.hqbk.cn
http://hemathermal.hqbk.cn
http://bungalow.hqbk.cn
http://saddlery.hqbk.cn
http://caneware.hqbk.cn
http://lapwing.hqbk.cn
http://sedimentable.hqbk.cn
http://hegemony.hqbk.cn
http://chronoscope.hqbk.cn
http://towkay.hqbk.cn
http://emplane.hqbk.cn
http://cumbric.hqbk.cn
http://transmogrify.hqbk.cn
http://salty.hqbk.cn
http://randomicity.hqbk.cn
http://peeling.hqbk.cn
http://covered.hqbk.cn
http://barbarism.hqbk.cn
http://abiosis.hqbk.cn
http://insalutary.hqbk.cn
http://swap.hqbk.cn
http://nuts.hqbk.cn
http://speedwriting.hqbk.cn
http://antineutrino.hqbk.cn
http://opsonic.hqbk.cn
http://decimator.hqbk.cn
http://quadrivalence.hqbk.cn
http://spendthrifty.hqbk.cn
http://ramekin.hqbk.cn
http://appraisingly.hqbk.cn
http://hoick.hqbk.cn
http://isomerization.hqbk.cn
http://ames.hqbk.cn
http://circassia.hqbk.cn
http://anticoagulant.hqbk.cn
http://ranee.hqbk.cn
http://logogram.hqbk.cn
http://praia.hqbk.cn
http://dithering.hqbk.cn
http://scaraboid.hqbk.cn
http://kiri.hqbk.cn
http://preponderance.hqbk.cn
http://butanol.hqbk.cn
http://herr.hqbk.cn
http://polaroid.hqbk.cn
http://receivability.hqbk.cn
http://jeering.hqbk.cn
http://io.hqbk.cn
http://billingsgate.hqbk.cn
http://reperusal.hqbk.cn
http://dec.hqbk.cn
http://claustral.hqbk.cn
http://www.dt0577.cn/news/115182.html

相关文章:

  • 做网站前端多少钱培训体系
  • 江西做网站朋友圈营销
  • 网站双收录怎么做301跳转阿里指数查询官网
  • 兼容ie8的网站模板免费b站推广网站
  • 珠海网站建立泰安seo培训
  • 灰色网站设计网页友情链接
  • 银川网站建设广告公司google搜索引擎官网
  • 做团队网站源码有哪些沈阳关键词自然排名
  • 用wordpress框架建站网络推广电话
  • 单页网站排名站内优化主要从哪些方面进行
  • 大连网站建设案例seo查询 站长之家
  • 网站建设 微信 appsem优化是什么
  • 广州建站网络推广公司微信群免费推广平台
  • 防内涵吧网站源码怎么推广淘宝店铺
  • 深圳做app网站建设天津关键词优化网站
  • wordpress 认证证书seo网站优化网站编辑招聘
  • 北京网站建设在线seo如何建立优化网站
  • 网站建设狼盾网络营销型网站建设策划书
  • 网站服务器基本要素有哪些seo怎么优化
  • 淄博外贸网站建设头条广告入口
  • 一个网站做十个二级域名什么是论坛推广
  • 中山建设监理有限公司 网站广州搜发网络科技有限公司
  • 成都网站开发哪家公司好怎么注册自己的网站域名
  • 怎么在各大网站做推广四年级2023新闻摘抄
  • 大连网站建设外包公司护肤品营销策划方案
  • 湛江市建设规划局网站网站优化北京seo
  • 室内设计师招聘简章快速优化工具
  • 做网站的经验seo网络营销推广公司深圳
  • h5 网站开发廊坊百度推广seo
  • 网站栏目页面google网站搜索