2023年1月17日

unity 2D 物体跟随鼠标旋转 移动

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowMouse:MonoBehaviour { // Use this for initialization 阅读全文

posted @ 2023-01-17 10:09 zqiang0803 阅读(690) 评论(0) 推荐(0) 编辑

Unity 在2D中实现LookAt,跟随鼠标转动

摘要: Vector3 v = (target.position - transform.position).normalized; transform.right = v; 阅读全文

posted @ 2023-01-17 10:01 zqiang0803 阅读(139) 评论(0) 推荐(0) 编辑

导航