Unity项目碎片
文章平均质量分 75
杜甲同学
QQ:2685312867
展开
-
Unity 项目中绘制血条的代码碎片
using UnityEngine; using System.Collections; public class BloodCS : MonoBehaviour { public Texture blood_red; public Texture blood_black; private GameObject hero; private int HP = 100;原创 2013-07-30 22:26:01 · 1189 阅读 · 0 评论 -
Unity 代码碎片敌人的AI
using UnityEngine; using System.Collections; public class Enemy_AI : MonoBehaviour { public const int STATE_STAND = 0; public const int STATE_WALK = 1; public const int STATE_RUN = 2; priv原创 2013-08-01 15:51:56 · 1759 阅读 · 0 评论