persistentDataPath

作者:追风剑情 发布于:2014-9-12 23:13 分类:Unity3d

using UnityEngine; using System.Collections; using System.IO; using System.Text; public class PersistentDataPathTest : MonoBehaviour { string path; void Start () { //可以把游戏数据持久化到此目录下 ...

阅读全文>>

标签: Unity3d

评论(0) 浏览(5457)

线程(Thread)

作者:追风剑情 发布于:2014-9-1 23:23 分类:C#

using System; using System.Threading; namespace ThreadTest { class Program { static void Main(string[] args) { //创建两条线程a,b Thread a = new Thr...

阅读全文>>

标签: C#

评论(0) 浏览(4583)

加速度传感器

作者:追风剑情 发布于:2014-8-31 16:42 分类:Unity3d

using UnityEngine; public class AccelerationTest : MonoBehaviour { float speed = 0.2f; Vector3 dir; Transform mTran; void Awake() { mTran = transform; }...

阅读全文>>

标签: Unity3d

评论(0) 浏览(14670)

深度优先搜索

作者:追风剑情 发布于:2014-8-30 21:28 分类:Algorithms

程序语言 C++ 开发工具 Visual Studio2010 Graph.h文件 #define MAXVEX 5 //图中最大顶点数 ///////////////////////////////////////////////////////////////////// // // 定义邻接表数据结构 // ////////////////////...

阅读全文>>

标签: Algorithms

评论(0) 浏览(4702)

goto

作者:追风剑情 发布于:2014-8-30 20:46 分类:C#

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace gotoTest { class Program { static void Main(string[] args) { ...

阅读全文>>

标签: C#

评论(0) 浏览(4850)

Android SDK Manager

作者:追风剑情 发布于:2014-8-28 23:23 分类:Unity3d

使用时常见问题 问题: Download interrupted: Connection to https://dl-ssl.google.com refused 解决方案: 在hosts文件中加上 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com hosts文件位置: C:\Windo...

阅读全文>>

标签: Unity3d

评论(0) 浏览(14544)

VBA导出UTF-8到txt

作者:追风剑情 发布于:2014-8-25 18:26 分类:VBA

Public Declare Function WideCharToMultiByte Lib "kernel32" (ByVal CodePage As Long, ByVal dwFlags As Long, ByVal lpWideCharStr As Long, ByVal cchWideChar As Long, ByRef lpMultiByteStr As Any, ByVal cc...

阅读全文>>

标签: VBA

评论(0) 浏览(17806)

图的广度优先搜索

作者:追风剑情 发布于:2014-8-24 12:43 分类:Algorithms

程序语言 C++ 开发工具 Visual Studio2010 Graph.h文件 #define MAXVEX 5 //图中最大顶点数 ///////////////////////////////////////////////////////////////////// // // 定义邻接表数据结构 // ////////////////////...

阅读全文>>

标签: Algorithms

评论(0) 浏览(4638)

Excel导出某列数据到txt文件

作者:追风剑情 发布于:2014-8-23 17:45 分类:VBA

测试文件版本Excel 2007 测试数据文件 添加开发工具菜单 创建一个宏 编写模块代码 创建向导窗口 为窗口编写功能代码 以下为运...

阅读全文>>

标签: VBA

评论(0) 浏览(20678)

UILabel设置行间距

作者:追风剑情 发布于:2014-8-22 17:44 分类:NGUI

using UnityEngine; using System.Collections; public class TestUILabel : MonoBehaviour { public UILabel label; public int hspacing = 2; public int vspacing = 2; // Use this for...

阅读全文>>

标签: NGUI

评论(0) 浏览(8517)

delegate

作者:追风剑情 发布于:2014-8-19 20:50 分类:C#

using System; namespace DelegateTest { public delegate string MyMethodDelegate(int i); class Program { static void Main(string[] args) { TestClass t...

阅读全文>>

标签: C#

评论(0) 浏览(7919)

邻接矩阵转邻接表

作者:追风剑情 发布于:2014-8-17 10:56 分类:Algorithms

程序语言 C++ 开发工具 Visual Studio2010 #include <stdlib.h> #include <stdio.h> #include <string.h> #define MAXVEX 5 //图中最大顶点数 ////////////////////////////////////////////...

阅读全文>>

标签: Algorithms

评论(0) 浏览(6062)

图的存储结构——邻接表

作者:追风剑情 发布于:2014-8-16 12:06 分类:Algorithms

邻接表是图的一种链式存储结构。所占空间与边数有关,适合存储稀疏图。一个图的邻接矩阵表示是唯一的,但其邻接表表示不唯一。 程序语言 C++ 开发工具 Visual Studio2010 #include <stdlib.h> #include <stdio.h> #define MAXVEX 5 /*图中最大顶点数*/ //定义顶点类型为...

阅读全文>>

标签: Algorithms

评论(0) 浏览(5167)

NavMeshAgent

作者:追风剑情 发布于:2014-8-13 21:57 分类:Unity3d

https://docs.unity3d.com/cn/2019.4/Manual/class-NavMeshAgent.html Unity 2022 已经将导航组件转移到了 Package 中。 注意:NavMeshAgent 与 Rigidbody 同时挂在角色身上会引起抖动。 一、搭建一个场景 二、...

阅读全文>>

标签: Unity3d

评论(0) 浏览(8282)

Regex.Replace()

作者:追风剑情 发布于:2014-8-6 16:30 分类:C#

开发工具 Visual Studio 2010 using System; using System.Text.RegularExpressions; namespace RegularExpressionsTest { class Program { static void Main(string[] args) { ...

阅读全文>>

评论(0) 浏览(5612)

Timer

作者:追风剑情 发布于:2014-8-6 15:13 分类:C#

开发工具 Visual Studio 2010 using System; using System.Timers; namespace TestTimer { class Program { private static Timer aTimer; static void Main(string[] arg...

阅读全文>>

评论(0) 浏览(10440)

读写文件

作者:追风剑情 发布于:2014-8-3 13:52 分类:C#

开发工具 Visual Studio 2010 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FileAccessTest { class Program { ...

阅读全文>>

标签: C#

评论(0) 浏览(4952)

狄克斯特拉(Dijkstra)算法

作者:追风剑情 发布于:2014-8-2 20:15 分类:Algorithms

Dijkstra是求解某点到其他各点的最短路径算法。 开发工具 Visual Studio2010 #include <stdlib.h> #include <stdio.h> const int MAXVEX = 6;//最大顶点数 const int INF = 429496729;//无路径时的权值 /** * 狄克...

阅读全文>>

标签: Algorithms

评论(0) 浏览(9402)

EditorWindow

作者:追风剑情 发布于:2014-7-30 21:00 分类:Unity3d

using UnityEngine; using UnityEditor; using System.Collections; static public class CustomMenu { [MenuItem("Custom/Create Window", false, 9)] static public void CreateWindow(){ ...

阅读全文>>

标签: GUI

评论(0) 浏览(5247)

Lighting Model函数

作者:追风剑情 发布于:2014-7-28 22:38 分类:Shader

Shader "Custom/LightingMyForwardLit" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags { "RenderType"="Opaque" } LOD 200 //.1 Pass { Tags {"LightMode"...

阅读全文>>

标签: Shader

评论(0) 浏览(4427)

smcs.rsp

作者:追风剑情 发布于:2014-7-28 14:43 分类:Unity3d

创建Unity的预编译文件 在你的Assets目录下面添加smcs.rsp文件,预编译是在启动U3D时候运行的。 示例: 在smcs.rsp中定义两个宏  -define:MACROS_1  -define:DEBUG using UnityEngine; using System.Collections; public class smcsT...

阅读全文>>

评论(0) 浏览(16071)

弹跳的小球

作者:追风剑情 发布于:2014-7-26 21:49 分类:Unity3d

一、导入Physic Materials 二、新建个Plane、Sphere 三、运行效果 物理材质的设置 (1)摩擦因子的设定 滑动摩擦因子或静摩擦因子的取值范围为0~1,当滑动摩擦因子或静摩擦因子取值为0时,被此材质控制的对象将拥有冰的效果,摩擦...

阅读全文>>

标签: Rigidbody

评论(0) 浏览(5141)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号