2019年7月25日
摘要: using System.Collections;using System.Collections.Generic;using UnityEngine;public class BorderTest : MonoBehaviour { List<Line> lineList = new List<L 阅读全文
posted @ 2019-07-25 17:42 百晓灵狐 阅读(295) 评论(0) 推荐(0)
  2019年6月6日
摘要: 项目中,常常会遇到资源重复的情况,这里介绍一种资源查重的方法,代码如下 using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;using System;using S 阅读全文
posted @ 2019-06-06 18:47 百晓灵狐 阅读(611) 评论(0) 推荐(0)
  2019年5月13日
摘要: local Graph = { ["乐谱"] = {["海报"] = 0, ["黑胶唱片"] = 5}, ["海报"] = {["低音吉他"] = 30, ["架子鼓"] = 35, ["乐谱"] = -1}, ["黑胶唱片"] = {["架子鼓"] = 20, ["低音吉他"] = 15}, [" 阅读全文
posted @ 2019-05-13 16:03 百晓灵狐 阅读(691) 评论(0) 推荐(0)
  2019年3月22日
摘要: 报错信息:Spine.Unity.Editor.AnimationReferenceAssetEditor.OnInspectorGUI () (at Assets/Extention/Spine/Editor/spine-unity/Editor/AnimationReferenceAssetEd 阅读全文
posted @ 2019-03-22 11:12 百晓灵狐 阅读(1924) 评论(0) 推荐(0)
  2019年3月14日
摘要: 一:图的概念,图模拟一组连接;可以认为是连接关系的集合。 例如:我们将A认识B记录为:A-->B, 将A认识C记录为:A-->C, 将C认识D记录为:C-->D, 那么类似的这样一组关系集合就可以称为图。 其中A,B,C,D我们称之为节点,他们之间的关系称之为路径 那么图的广度优先遍历问题就可以概括 阅读全文
posted @ 2019-03-14 20:35 百晓灵狐 阅读(288) 评论(0) 推荐(0)
  2019年3月8日
摘要: 在Unity项目开发过程中,当要做热更新时常常使用一个叫做AssetBundle的东西,这里做一点个人的学习记录 步骤1: 设置打包标签:具体步骤 进入Unity,选择某一资源然后看右下角,在那个地方做这个事情 步骤2: 打对应平台的Bundle包, 这里或多或少要用到一点编辑器扩展的内容,很简单, 阅读全文
posted @ 2019-03-08 15:49 百晓灵狐 阅读(550) 评论(0) 推荐(0)
  2019年2月27日
摘要: 一:折半查找: public int rank(int key, int[] arr){ // 要求数组是有序的 int min = 0; int max = arr.Length - 1; while(min <= max){ // 被查找的内容要么不在要么在arr[min ,,,, max]之中 阅读全文
posted @ 2019-02-27 19:52 百晓灵狐 阅读(164) 评论(0) 推荐(0)
摘要: using System; namespace Algorithm.AFind { public class Example04:IComMethod { int[] a1 = { 8, 9, 7, 5, 4, 3, 10, 12, 1, 2, 21, 66, 43}; public Example 阅读全文
posted @ 2019-02-27 19:52 百晓灵狐 阅读(201) 评论(0) 推荐(0)
摘要: 目标:对数组(列表等任意有序容器)进行排序 方法:对列表进行遍历,选出最大的 之后将这个数储存起来,对剩下的数再选择最大的,之后再对剩下数做同样的操作 直至结束即可。 代码如下: public class Example02:IComMethod { public Example02() { } p 阅读全文
posted @ 2019-02-27 15:51 百晓灵狐 阅读(121) 评论(0) 推荐(0)
  2019年2月26日
摘要: using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI; // 利用委托来进行按钮组的管理public class test07 : MonoBehaviour 阅读全文
posted @ 2019-02-26 15:02 百晓灵狐 阅读(6449) 评论(0) 推荐(0)