自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

哲哲

一个菜鸟的修行之路

  • 博客(69)
  • 收藏
  • 关注

原创 1024勋章获得

你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:撤销:Ctrl/Command + Z重做:Ctrl/Command + Y加粗:Ctrl/Command + B斜体:Ctrl/Command + I标题:Ctrl/Command + S

2022-10-24 09:58:00 165 1

原创 unity中3dUI始终面向摄像机,跟随摄像机视角旋转而旋转

3dUI始终面向摄像机,广告牌效果public class SimpleBillboard : MonoBehaviour{ public bool IsStopInSceneView = false; void OnDrawGizmos() { if (IsStopInSceneView == false && Application.isPlaying == false && SceneView.currentDrawingS

2022-03-28 09:51:59 10681 3

原创 有限责任公司设立登记流程及提交材料

一、发起人会议:第一:订立发起人协议:(1)公司名称,(2)公司住所,(3)公司经营范围,(4)公司注册资金数额,(5)发起人认缴股款金额以及缴纳期限,(6)其他需要约定事项,(7)全体发起人在协议上签章。第二:制定公司章程(公司发对章程必备的内容制定了规定)二、名称预核准:到工商局提交以下资料:(1)全体发起人签署的公司名称预先核准申请书,(2)发起人身份证明,(3)其他要求提交的资料,获得批准的领取《公司名称预先核准通知书》三、开立公章和账户持《公司名称预先核准通知书》和

2021-12-29 11:22:27 377

原创 unity异步加载

using UnityEngine;using UnityEngine.UI;using UnityEngine.SceneManagement;using System.Collections;public class GotoSceneForAsyncOperation : MonoBehaviour{ public GameObject loadScene; public Slider loadSlider; public Text showText;

2021-08-20 16:57:03 288

原创 使用unity自带的PlayerPrefs存储数据

using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class Secup : MonoBehaviour{ public InputField _field1; public InputField _field2; public Button _button; private string content1

2021-08-12 15:57:31 216

原创 摄像机发射射线来实现凝视效果

public static raycastjiance raycastjiances; [SerializeField] private GameObject m_Canvas; [SerializeField] private float _myTime = 3;//时间总量 [SerializeField] private GameObject m_cd; [SerializeField] private Image m_Image..

2021-08-12 11:12:21 191

原创 unity 方向盘效果

unity 方向盘效果,改变方向盘的位置 车自身位置跟随方向盘旋转需要添加一个 boxcollider, 其中一个必须要有刚体, 通过刚体的碰撞来改变方向盘的方向,using System.Collections;using System.Collections.Generic;using UnityEngine; public class ShipComtrol : MonoBehaviour{ public Transform ship;//船体 public V

2021-08-03 10:04:52 385

原创 c#算法时间复杂度 面试必看

using System.Collections;using System.Collections.Generic;using UnityEngine;public class Arithmetic : MonoBehaviour{ private int[] arr = new int[] { 5, 7, 9, 3, 1, 0, 6, 4, 2, 8 }; private 快速 _Get = new 快速(); void Start() { //_

2021-08-02 11:14:10 440

原创 unity水上小船晃动物理效果

小船晃动的一个效果,代码也是之前在csdn上面找到的,// 绕Z轴的摇摆的速度 float z_Speed = 3.0f; // 绕X轴的摇摆的速度 float x_Speed = 1.0f; void Start() { } void Update() { // 绕Z轴摇晃 if (this.transform.eulerAngles.z >= 4 && this.transfor

2021-07-27 18:01:10 1443

原创 常用的算法问题

冒泡排序冒泡排序算法(Bubble Sort)是一种流行但低效的排序算法。它的原理是反复比较待排序数组中所有相邻的两个数据,使他们按照升序(或降序)排列。当待排序数组中所有相邻数据都比较过一次之后,待排序数组中最小(或最大)的数据会被逐步交换到第一位,就像气泡从水底慢慢升到水面一样,故名“冒泡排序算法”。注意:冒泡排序考数组和for理解,主要面试用int[] nums={9,8,7,6,5,4,3,2,1,0}; 0 1 2 3 4 5 6 7 8 9第一趟比较:8 7 6 5 4 3 2 1 ..

2021-07-26 11:05:13 230

原创 ai寻路从当前位置触发事件返回之前的位置

直接废话不多说 上代码using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.AI;public class xunlusss : MonoBehaviour{ //[ExecuteInEditMode] public Transform[] DirectPoints;//这个是需要到达的位置 private int _index

2021-07-26 09:39:26 188

原创 unity标签判断拖动物体

给需要添加的物体添加标签,添加碰撞器 完事!using System.Collections;using System.Collections.Generic;using UnityEngine;/// <summary>/// 标签判断物体拖动/// </summary>public class drag : MonoBehaviour{ private Camera cam; private GameObject go; public s

2021-07-21 15:58:50 458 2

原创 unityUI对话框的实现

using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class MessageTool : MonoBehaviour{ private List<string> lists = new List<string>();//存储对话的 public Text text; int index = -

2021-07-16 11:22:09 869 2

原创 进入场景后从第一个摄像机切换至另一个摄像机

利用了IEnumerator 协成来延迟调用 //主摄像机 public Camera MainCamera; //第二个摄像机 public Camera SecondCamera; void Start() { StartCoroutine("SwitchOverCamera");//调用携程 } void Update() { print(Time.time);//time } I

2021-07-15 09:31:11 147

原创 unity 2048核心逻辑

using System.Collections.Generic;using System;/// <summary>/// 游戏核心处理类/// </summary>public class GameCore{ /// <summary> /// 游戏地图 /// </summary> private int[,] map; public int[,] Map { get { re

2021-06-14 15:00:45 276 3

原创 全局管理器单例模式

private static ResourcesManager instance;// private ResourcesManager() { }//私有的构造函数不允许外部使用 public static ResourcesManager Instance { get { if (instance==null) { instance = new ResourcesM..

2021-06-14 14:59:02 190

原创 unity中的AI实现方法

using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.AI;public class Xunlu : MonoBehaviour{ public Transform[] DirectPoints; private int _index = 0; private float _timer = 0; public float patro

2021-05-25 14:08:58 2065 5

原创 Go

using System.Collections;using System.Collections.Generic;using UnityEngine;public class Go : MonoBehaviour{ private bool IsGo=true; public GameObject a; // Start is called before the first frame update private void OnCollisionEnter(Collisio

2021-05-12 20:15:55 80

原创 Move

using System.Collections;using System.Collections.Generic;using UnityEngine;public class Move : MonoBehaviour{ private Vector2 offs; public float speed = 2; void Start() { offs = transform.eulerAngles; } void Update()

2021-05-12 20:15:21 82

原创 Mo

using System.Collections;using System.Collections.Generic;using UnityEngine;public class Mo : MonoBehaviour{ private Vector3 deltaPos = Vector3.zero; // Use this for initialization void Start() { } // Update is called once per frame void

2021-05-12 20:14:48 77

原创 unity 技能按键冷却

using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.UI;public class Skill : MonoBehaviour{ public float SkillTime=5; private float SkillTimeNow=5; private bool SkillCanShow=true; public Image I

2021-03-19 09:34:31 268

原创 unity之tAssetBundle打包出包

using System.IO;using UnityEditor;using UnityEngine;public class AssetAssetBundle { [MenuItem("AssetBundleTools/BuildAllAssetBundles")] public static void BuildAllAB() { // 打包AB输出路径 string strABOutPAthDir = string.Empty.

2021-01-11 10:11:29 153

翻译 unity实现计算机的方法

using System;using System.Collections;using System.Collections.Generic;using UnityEngine;public class Computation : MonoBehaviour{ public static bool IsNumeric(string value) { return System.Text.RegularExpressions.Regex.IsMatch(value,

2020-12-22 10:18:34 304

原创 unity生成vr效果

这是一个谷歌的插件:GoogleVRForUnity_.unitypackage谷歌插件下载地址开始制作最简单的 VR 盒子导入 GoogleVRForUnity_.unitypackage将项目的平台设置为 Android 平台:在项目中添加 vr sdk, 选中Edit/Project Setting/Player/XR Settings/Virtual Realty Supported,点击加号,在弹出的列表中,选择Cardboard:并且在 Other Settings/Minim

2020-12-21 08:45:13 3112 1

原创 AssetBundle版本跟新对比

文本格式// assetimage_u.ab,C144A2F36A0E717F840D71E7DD8064F5// uiloginview.ab,0EDBE7BC9B326704DA3F51B6014E9F7D //获取Res文件夹下所有文件的相对路径和MD5值 string[] files = Directory.GetFiles(resPath, "*", SearchOption.AllDirectories); StringBuilder version

2020-11-19 14:01:23 365

原创 LitJson解析

{ "Web": [ { "id": 1, "name": "名字" }, { "id": 2, "name": "名字2" }, { "id": 3, "name": "名字3" } ]}JsonData实现的接口如下JsonData data = JsonMapper.ToObject(jsondata);//Js

2020-11-19 13:54:11 2507

原创 XML解析常用的属性

using System.Xml;//1.引入命名空间XmlDocument xmldoc = new XmlDocument();//2.创建XML文档对象XmlDeclaration xmldec = xmldoc.CreateXmlDeclaration("1.0", "utf-8", null); //3.创建第一行描述信息, xmldoc.AppendChild(xmldec);//添加到xmldoc文档中XmlElement xmlele1 = xmldoc.Cr

2020-11-19 13:48:26 773

原创 摄像机跟随

public class positionfollowing : MonoBehaviour { Vector3 offut; public GameObject Tagat; public float hight; public float forword; public float PositionSpeed; void Start () { offut = Tagat.transform.position - transform...

2020-11-09 20:56:18 68

原创 TCP和UDP的区别

TCP协议和UDP协议连接过程的区别1.基于连接与无连接;2.对系统资源的要求(TCP较多,UDP少);3.UDP程序结构较简单;4.流模式与数据报模式 ;5.TCP保证数据正确性,UDP可能丢包,TCP保证数据顺序,UDP不保证。socket - TcpClient,TcpListener,UdpClient应用程序可以通过 TCPClient、TCPListener 和 UDPClient 类使用传输控制协议 (TCP) 和用户数据文报协议 (UDP) 服务。这些协议类建立在 System

2020-11-09 20:50:06 181

原创 Socket(套接字)编程(Tcp)

基于Tcp协议的Socket通讯类似于B/S架构,面向连接,但不同的是服务器端可以向客户端主动推送消息。使用Tcp协议通讯需要具备以下几个条件:    (1).建立一个套接字(Socket)    (2).绑定服务器端IP地址及端口号–服务器端    (3).利用Listen()方法开启监听–服务器端    (4).利用Accept()方法尝试与客户端建立一个连接–服务器端    (5).利用Connect()方法与服务器建立连接–客户端    (5).利用Send()方法向建立连接的主机发送

2020-11-09 20:47:47 186

原创 WebClient概述

WebClient概述从MSDN中我们可以得知,WebClient的作用就是“Provides common methods for sending data to and receiving data from a resource identified by a URI.”也就是说我们可以通过这个类去访问与获取网络上的资源文件。WebClient类不能被继承,我们可以通过WebRequest和WebResponse这两个类来处理向URI标示的资源和获取数据了。这两个类功能挺强大的,但不足之处的是利用

2020-11-09 20:43:25 2385

原创 线程,任务和同步

线程对于所有需要等待的操作,例如移动文件,数据库和网络访问都需要一定的时间,此时就可以启动一个新的线程,同时完成其他任务。一个进程的多个线程可以同时运行在不同的CPU上或多核CPU的不同内核上。线程是程序中独立的指令流。在VS编辑器中输入代码的时候,系统会分析代码,用下划线标注遗漏的分号和其他语法错误,这就是用一个后台线程完成。Word文档需要一个线程等待用户输入,另一个线程进行后台搜索,第三个线程将写入的数据存储在临时文件中。运行在服务器上的应用程序中等待客户请求的线程成为侦听器线程。进程包含资源,

2020-10-08 08:57:44 142 1

原创 AssetBundle打包缓存加载机制

一、什么是AssetBundle?1.它存在于硬盘上的文件。可称之为压缩包。该压缩包里面有多个文件,这些文件可分为两类:serialized file和resources file(即序列化文件和源文件)。(1)serialized file:资源被打散放在一个对象中,最后统一被写进一个单独的文件(只有一个)(如:模型资源,prefab资源等)(2)resources file:某些二进制资源(如:图片、声音)被单独保存,方便快速加载。2.它是一个AssetBundle对象,我们可以通过AssetBun

2020-10-05 13:40:15 368

原创 unity 制作 2048小游戏

核心代码就是这些,关于的那些分数排行榜哪些小功能懒得做了。using System.Collections.Generic;using System;/// <summary>/// 游戏核心处理类/// </summary>public class GameCore{ /// <summary> /// 游戏地图 ///...

2019-10-29 13:37:16 1110

原创 Unity视角切换

unity中视角切换分别是三个视角的角度 分别点击UI选择切换using System.Collections;using System.Collections.Generic;using UnityEngine;using DG.Tweening;using UnityEngine.UI;using System;public class shijiao : Mono...

2019-10-10 09:10:57 6763

原创 unity中关于小地图的制作

using System.Collections;using System.Collections.Generic;using UnityEngine;public class Map : MonoBehaviour{public Transform poinA;public Transform poinB;public Transform Player;//大地图人物public...

2019-09-16 08:50:55 224

原创 C# Excel解析

Excel自己写了一个解析器,来解析咱们的Excel。using Microsoft.Office.Interop.Excel;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; class ExcelMana...

2019-08-12 14:13:14 1525 3

原创 Json解析

如何解析本地json文本using System.Collections;using System.Collections.Generic;using UnityEngine;using LitJson;using System.IO;using System;public enum Itemtype{ Consumable, Equipment, Weapon, Mat...

2019-07-15 20:18:52 148

原创 JSON 数据格式

JSON 数据格式JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。JSON采用完全独立于语言的文本格式,这些特性使JSON成为理想的数据交换语言。易于人阅读和编写,同时也易于机器解析和生成。基础结构JSON建构于两种结构:1. “名称/值”对的集合(A collection of name/value pairs)。不同的语言中,它被理解为对象...

2019-07-11 17:12:39 155

原创 面向对象

1.概述:面向对象是目前最流行的一种设计思想,无论你从事企业级开发,互联网应用开发,还是手机软件开发,都会使用面向对象的技术,主流编程语言中,C++,Java,C#,PHP等都是面向对象的语言,在编程语言排行榜的前十位中,面向对象能够稳定的占据7~8种语言,所有的现象,都展示了面向对象的流行程度和受欢迎程度。如果你是一个程序员,但是却不懂面向对象,那么你真的会被嘲笑为“程序猿”。2.程序设计思...

2019-07-08 15:26:20 184

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除