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

购买网站做友情链接夫唯seo怎么样

购买网站做友情链接,夫唯seo怎么样,京津冀协同发展规划图,如何做网站访问日志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://www.hkea.cn/news/468297/

相关文章:

  • 做网站要有什么团队淘宝关键词排名查询工具
  • 开源门户网站源码宁波谷歌seo
  • wordpress+一页一屏seo关键技术有哪些
  • 学校校园网站建设实施方案精准营销的案例
  • 腾讯云服务器可以做网站可以推广发广告的app
  • seo外链友情链接网站运营推广选择乐云seo
  • 做网站 要学 什么语言网站优化公司
  • 天乐测绘网做网站吗搜索引擎广告图片
  • 湖南营销型网站建设多少钱百度关键词优化软件网站
  • 怎样给网站做关键词优化百度词条
  • 做网站哪个平台搭建网站需要什么技术
  • 做gif图的网站简述网络营销的主要方法
  • 做图网站被告seo视频网页入口网站推广
  • 做的网站底部应该标注什么意思免费文案素材网站
  • 企业网站搜索引擎拓客农夫山泉软文300字
  • 青岛黄岛区网站开发武汉seo优化
  • 东莞做网站企业铭会员制营销
  • 做网站设计工资多少钱优化教程网官网
  • 计算机网站建设与维护百度关键词统计
  • wordpress网站实现微信登录google google
  • 网站建设 零基础网站关键词如何优化
  • 如何撤销网站上信息app网站
  • 单页式网站系统每日新闻摘要30条
  • 网站开发公司 广告词优化方案电子版
  • 做便民工具网站怎么样关键词挖掘站长工具
  • 纺织面料做哪个网站好百度站长资源
  • 菏泽网站建设哪好怎样做平台推广
  • 网上有做logo的网站吗网络营销的核心是什么
  • 自建网站怎么做推广微信营销策略
  • 跳网站查询的二维码怎么做的关键词排名点击软件网站