摘要: 1.首先在你的层次视图中创建所需的节点 ,节点的位置顺序排列 2.导入Itween 插件 1.可以直接从项目外部拖拽到本项目中 2.通过AssetStore 中导入 3.在你的父节点上创建脚本 ,对象依次对应 效果如图: 这个绿色的小图标可以在检视视图上设置 阅读全文
posted @ 2019-01-29 12:25 TheBoy_24 阅读(376) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class DemoPool : MonoBehaviour { //要实例的物体 public GameObject monsterPrefab; //存放物体的对象池 未激活 priv... 阅读全文
posted @ 2019-01-07 23:19 TheBoy_24 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1.doTween的静态方法 DOTween.To(() => maskImage.color, toColor => maskImage.color = toColor, new Color(0, 0, 0, 0), 2f); //详细分解 DOTween.To( () => maskImage.c... 阅读全文
posted @ 2018-11-15 15:29 TheBoy_24 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: private static void QuictSort(int[] zu, int left, int right) { if (left left && zu[j] > mid) { j--; ... 阅读全文
posted @ 2018-11-15 14:49 TheBoy_24 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 概念 1.一个抽象父类,N 个实现类 2.一个工厂类, 负责生产 (new 对象) 简单工厂模式的优点: 1.实现了对象的创建和使用的分离 2.记住主要的参数即可,减少使用者的记忆量 缺点: 1.工厂类的职责过重,一旦不能工作,系统将受到影响 2.增加了类的个数,复杂度和理解度增加 3.违反了"开闭 阅读全文
posted @ 2018-11-15 14:34 TheBoy_24 阅读(190) 评论(0) 推荐(0) 编辑