上一页 1 2 3 4 5 6 7 ··· 30 下一页
摘要: 选择索引模式 阅读全文
posted @ 2015-01-05 15:25 softimagewht 阅读(210) 评论(0) 推荐(0)
摘要: toolMode.coordsys #localRotValInv = inverse ((eulerToQuat(eulerAngles 90 0 0)) as quat)in coordsys local $.rotation *= RotValInv$.objectoffsetrot *= R... 阅读全文
posted @ 2014-12-29 15:10 softimagewht 阅读(995) 评论(0) 推荐(0)
摘要: http://zh.esotericsoftware.com/spine-using-runtimes //skeletonData SkeletonAnimation skeletonAnimation = GetComponent(); Debug.Log(skeletonAnim... 阅读全文
posted @ 2014-12-07 09:29 softimagewht 阅读(8723) 评论(0) 推荐(0)
摘要: http://coder.beitown.com/archives/592在之前的文章里介绍了一个基础U3D状态机框架(Unity3D游戏开发之状态流框架)即大Switch的枚举状态控制。这种方法虽然容易理解,编程方法也相对简单,但是弊端是当状态变得复杂之后,或需要添加一种新的状态时,会显得非常混乱... 阅读全文
posted @ 2014-10-22 10:23 softimagewht 阅读(10710) 评论(3) 推荐(0)
摘要: Writing Surface ShadersWriting shaders that interact with lighting is complex. There are different light types, different shadow options, different re... 阅读全文
posted @ 2014-10-14 14:21 softimagewht 阅读(3132) 评论(0) 推荐(0)
摘要: http://game.ceeger.com/Manual/RandomNumbers.html随机选择的物品或值在很多游戏中都是很重要的。这个部分展示了如何使用统一的内置随机函数来实现一些常见的游戏机制。Choosing a Random Item from an ArrayPicking an ... 阅读全文
posted @ 2014-09-25 11:28 softimagewht 阅读(1644) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;using System.Collections.Generic;using UnityEditor;public class selectionFn : ScriptableObject { [MenuIt... 阅读全文
posted @ 2014-08-22 10:44 softimagewht 阅读(1045) 评论(0) 推荐(0)
摘要: 只攻击正前方的单位,向前发射一条射线,攻击碰到的单位RaycastHit hit;//range 射线的长度,即攻击范围,maskTarget敌方单位的mask,只攻击敌方单位if(Physics.Raycast(unit.thisT.position, unit.thisT.forward, ou... 阅读全文
posted @ 2014-08-17 11:18 softimagewht 阅读(967) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;public class ProjectileTest : MonoBehaviour{ public GameObject target; public float speed = 10; pr... 阅读全文
posted @ 2014-08-17 11:12 softimagewht 阅读(1936) 评论(0) 推荐(0)
摘要: 这篇文章MOMO主要想大家说明一下我在Unity3D游戏开发中是如何写游戏脚本的,对于Unity3D这套游戏引擎来说入门极快,可是要想做好却非常的难。这篇文章的目的是让哪些已经上手Unity3D游戏引擎的朋友学会如何更好的写游戏脚本,当然本文这紧紧是我这么多年对游戏开发的认知,你也可以有你自己的看法... 阅读全文
posted @ 2014-08-16 17:44 softimagewht 阅读(8583) 评论(1) 推荐(2)
上一页 1 2 3 4 5 6 7 ··· 30 下一页