- 博客(10)
- 收藏
- 关注
原创 unity3d update()中获取键盘按键
void Update() { //获取按键 if (Input.anyKeyDown) { foreach (KeyCode keyCode in System.Enum.GetValues(typeof(KeyCode))) { if (Input.Get...
2019-03-09 10:57:46
2605
原创 unity Android 的文件操作
Unity windows环境下 存在Assets/StreamingAssets目录下的文件可以直接使用路径: path= Application.streamingAssetsPath + "/" + fileName; 进行读写操作。但是在Android的环境中Assets/StreamingAssets目录下的文件只能进行读取的操作。 Android的环境中使用路径: path =...
2018-11-06 16:13:21
2735
原创 unity3d 导出apk 方法记录
1.安装JDK 下载JDK 8.1 https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 10.1 https://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644....
2017-12-20 13:13:23
3287
原创 c++ 快速排序
设置标兵,将小于和大于标兵的数分别放在标兵两侧。进行递归。 void quickSort(Student s[], int low, int high) { Student temp; temp = s[low]; if (low < high) { int i = low, j = high; while (i < j) { while (i < ...
2017-12-20 12:52:46
262
原创 邻接表的c++实现 及 Dijkstra算法
邻接表的c++ #define maxSize 5 #define INFINITY 10000 //代表无穷 typedef char Vertex;//节点类型 typedef int edge;//边上权值类型 //边节点 class edgeNode { public: edgeNode(); ~edgeNode(); int adjvex; edge weigh
2017-12-20 12:40:53
2121
原创 排序二叉树的c++实现
class tree { public: tree(); ~tree(); datatype info; tree *lchild; tree *rchild; private: }; tree::tree() { rchild = NULL; lchild = NULL; } tree::~tree() { } class treelink { public: treeli
2017-12-20 12:34:56
1457
原创 单链表的实现 C++
//struct node //{ // datatype info; // node *next; // node() :next(NULL) {} // node(datatype x) :info(x), next(NULL) {} //}; class node //结点类 { public: node(); node(datatype x) { info = x; next
2017-12-20 12:27:59
248
原创 unity 鼠标控制第一人称视角及键盘控制移动
脚本MouseLook(在主相机上): using UnityEngine; using System.Collections; public class Mouselook : MonoBehaviour { public enum RotationAxes{ MouseXAndY = 0, MouseX =1, MouseY =2 ...
2017-10-21 15:40:34
16032
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅