摘要:
1、新建组件Scroll View,调整适合大小,修改组件参数 (垂直滑动,取消自带水平,垂直滑动块) 2、新建Slider组件,调整大小及组件参数 3、脚本 using System.Collections; using System.Collections.Generic; using Unit 阅读全文
摘要:
1.创建UI,InputField、SCroll View 2.在BG上绑定脚本Post 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using UnityEngine. 阅读全文
摘要:
代码如下: 1 public class CameraController :SingletonMono<CameraController> 2 { 3 [Header("目标位置")] 4 public Transform target; 5 [Header("旋转X轴")] 6 public f 阅读全文
摘要:
一、创建物品类以及物品类型属性 1.如图所示 2.创建脚本Item类 /// <summary> /// 物品基类 /// </summary> public class Item { public int ID { get; set; }//ID public string Name { get; 阅读全文