自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

赖张殷-Eagle

你在编程上所花费的每一分努力都会有收获

  • 博客(22)
  • 资源 (3)
  • 问答 (9)
  • 收藏
  • 关注

原创 unity使用鼠标移动对象代码2

public float speed = 20.0f;//速度 public float mass = 2.0f;//质量 public float force = 50.0f;//力 private float curSpeed;//当前速度 private Vector3 targetPoint;//目标位置 void Start() {

2016-03-30 23:06:25 657

翻译 顺序查找和折半查找

/// /// 顺序查找 /// /// 需要查找的数据 /// 查找数据的长度 /// 需要查找的关键字 /// static int SeqSearch(int[] s, int n, int key) { int i;

2016-03-15 14:00:16 739

原创 AI感官模拟

//父类//方便添加新感官using UnityEngine;using System.Collections;/// /// AI感官类/// public class Sense : MonoBehaviour { public bool isDebug = true; public Aspect.aspect aspectName = Aspect.aspect.

2016-03-12 21:02:28 1347

原创 unity3D中使用鼠标控制物体移动的方法

using UnityEngine;using System.Collections;public class Target : MonoBehaviour { public Transform targetMatker; void Start() { } void Update() { int button = 0; i

2016-03-12 16:16:12 7938

转载 C#操作ZIP的方法

本文转自   http://www.111cn.net/net/net/95306.htm由于本文引用了其他的dll文件,需要下载的请自行前往原博客下载using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tas

2016-03-10 18:24:10 1068

转载 合并排序

博客转自  http://www.cnblogs.com/mingmingruyuedlut/archive/2011/08/18/2144984.html 归并排序(Merge Sort)是利用"归并"技术来进行排序。归并是指将若干个已排序的子文件合并成一个有序的文件。归并排序有两种方式:1): 自底向上的方法 2):自顶向下的方法 1、 自底向上的方法

2016-03-10 12:24:28 569

转载 对于改变随机数范围大小出现频率的操作

以下内容参照《unity3d 人工智能编程》--Aung Sithu Kyaw,Clifford Peters ,Thet Naing Swe编著  最近在研究此书,花费几天时间,略有收获,所以写下此编文章,受个人能力限制,这个只是我的粗陋之见。首先贴下此书源码下载地址,http://hzbook.com/Books/8580.html,请大家尊重知识产权,如果

2016-03-10 10:48:01 1367 1

转载 关于Unity读取XML的简单学习

本文转自 宣雨松 的博客   http://www.xuanyusong.com/archives/1901using UnityEngine;using System.Collections;using System.Collections.Generic;using System.Xml;using System.IO;using System.Text;pu

2016-03-08 23:02:47 557

原创 类似英雄联盟里面血条的显示效果

using UnityEngine;using System.Collections;using System.Collections.Generic;public class HeroBlood : MonoBehaviour { //基于NGUI的设计效果 //单个血条的预制体 public GameObject bloodClip; //整体血条的父类

2016-03-08 19:07:40 1925

原创 血条的减速衰减的制作(分前景和背景效果)

using UnityEngine;using System.Collections;public class Control : MonoBehaviour { //基于NGUI的设计 //血条父类 public UISlider blood; //血条背景 public UISprite late; //血条长度 private f

2016-03-08 18:36:42 1235

翻译 unity小地图制作代码....

using UnityEngine;using UnityEngine.EventSystems;public class UIMiniMap : MonoBehaviour, IPointerDownHandler{ /// /// 小地图上的A点 /// public RectTransform a; /// /// 小地图上的B点

2016-03-08 14:11:26 1629

翻译 希尔排序

class Program { static void Main(string[] args) { int[] a = new int[30]; Random rd = new Random(); for (int i = 0; i < a.Length ; i++)

2016-03-07 23:42:53 430

翻译 直接插入排序

class Program { static void Main(string[] args) { Random rd = new Random(); int[] a = new int[20]; for (int i = 0; i < a.Length ; i++)

2016-03-07 23:09:14 534

翻译 帧动画处理脚本

if(isDeath){ timer+=Time.deltaTime;// 0 int frameIndex = (int)(timer/(1f/explosionAnimationFrame)); if(frameIndex>=explosionSprites.Length){ //destroy Destroy(this.gameObject);

2016-03-07 12:16:29 837

翻译 关于FSM(有限状态机)的学习3---总结

以下内容参照《unity3d 人工智能编程》--Aung Sithu Kyaw,Clifford Peters ,Thet Naing Swe编著  最近在研究此书,花费几天时间,略有收获,所以写下此编文章,计划是3章,这是第一章,受个人能力限制,这个只是我的粗陋之见。首先贴下此书源码下载地址,http://hzbook.com/Books/8580.html,请大

2016-03-06 08:50:00 1406

翻译 关于FSM(有限状态机)的学习2

以下内容参照《unity3d 人工智能编程》--Aung Sithu Kyaw,Clifford Peters ,Thet Naing Swe编著最近在研究此书,花费几天时间,略有收获,所以写下此编文章,计划是3章,这是第一章,受个人能力限制,这个只是我的粗陋之见。首先贴下此书源码下载地址,http://hzbook.com/Books/8580.html,请大家尊重知识产权,如果有需

2016-03-06 08:20:06 2034

翻译 关于FSM(有限状态机)的学习(1)

以下内容参照《unity3d 人工智能编程》--Aung Sithu Kyaw,Clifford Peters ,Thet Naing Swe编著最近在研究此书,花费几天时间,略有收获,所以写下此编文章,计划是3章,这是第一章,受个人能力限制,这个只是我的粗陋之见。本文主要讲述的是有限状态机的框架首先1,2是源码,3是我个人学习的一些收获。首先贴下此书源码下载地址,http:/

2016-03-05 20:49:17 1288

翻译 unity音频管理

private static void PlayAudio(string path,float volume, bool is3D,Transform parent,Vector3 pos,float delay){        //获得音频AudioClip clip = Resources.Load(path);        //新建对象GameObject obj =

2016-03-03 10:26:14 931

翻译 围住神经猫

///     /// 判断下一步可能的位置,计算猫可移动的位置    ///     ///     private ArrayList FindSteps()    {        Items items = cat.GetComponent();        int rowIndex = items.rowIndex;        int columnI

2016-03-02 18:13:47 592

翻译 递归_数制转换

递归_数制转换原来是用C写的,我改成C#后,由于语言的不同,多少会有点差异,但是能实现功能!!! using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace

2016-03-02 17:46:43 784

翻译 贪婪法_找零钱

贪婪法_找零钱 做这个的时候,由于语言的不同,要把C—>C#,有很多bug,但是很多都克服了,也算值得,第一次感觉到了C的强大,真的是一门经典的语言啊!!!using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threa

2016-03-02 17:45:42 733

原创 关于UnityEngine.Network的一些浅显认知

UnityEngine.Network是unity提供的实现网络功能的核心,提供了基本的功能接口,例如建立服务器和加入服务器等。作为初学者,博主最近通过一本书获得了了解这个功能的机会,在这里主要是总结一下。基本的3个接口:1.Network.InitializeServer(int connections,int port,bool useNat)该接口用于初始化服务器,参数1

2016-03-01 22:44:18 1920

自走棋demo.txt

unity商店的自走棋autochess demo

2021-04-09

unity UI脚本生成器

unity UI脚本生成器!

2019-03-16

UI框架

一套简洁好用的UI框架,很适合团队开发,并且容易上手

2018-05-23

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

TA关注的人

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