
unity3d
文章平均质量分 53
finnxu
挥舞着键盘和鼠标,发誓要将这世界写得明明白白!
展开
-
unity3d中通过代码实现创建一堵墙的功能
在unity3d中可以通过拖拽创建一堵墙,但是这对墙缝隙的把握要求很高,很难创建出标准的一堵墙,我们就可以通过算法实现创建一堵墙的功能,条用unity圣典中vector3方法实现创建墙的效果,代码非常简单。using UnityEngine;using System.Collections;/* 实现创建一堵墙的功能 */public class creat原创 2016-07-18 17:53:59 · 8341 阅读 · 3 评论 -
观察者模式-猫捉老鼠(委托与事件)
猫捉老鼠是一个典型的观察者模式的实现案例,在其中加入委托与事件的程序实现,将会提高代码的一个可读性,其下是代码实现:创建一个Cat类:using System;using System.Collections.Generic;using System.Diagnostics.Contracts;using System.Linq;using System.Text;usi原创 2016-07-18 17:47:58 · 1234 阅读 · 0 评论 -
unity项目build成apk问题
当我们导入一个项目成android项目时会发生一个问题就是:Error building Player: UnityException: Bundle Identifier has not been set up correctlyPlease set the Bundle Identifier in the Player Settings. The value must follow原创 2016-08-06 20:33:32 · 1770 阅读 · 0 评论