简单功能模块
Rick__
力争上游
展开
-
Unity C# 正反斜杠 转换
原创 2021-09-24 09:04:53 · 1121 阅读 · 0 评论 -
TUIO鼠标点击与3D物体转换
using UnityEngine; using System.Collections; // this object just handles the crosshairs that show up under each touch event public class BBCrosshairController : MonoBehaviour { public GameObject crosshairPrefab; // public BBInputDelegate eventMa...原创 2021-04-04 11:11:55 · 322 阅读 · 0 评论 -
2d 跟随鼠标移动
//2d 物体跟随鼠标移动 //targetPos =Camera.main. ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 10f)); //_bullet.transform.position= Vector3.MoveTowards(_bullet.t...原创 2019-12-19 22:41:32 · 367 阅读 · 0 评论