摘要:
public class enemy : MonoBehaviour { public Sprite[] hitSprite; private SpriteRenderer spriteRenderer; public float hitTimer = 0.2f; private float resetTime; void Start () { sprit... 阅读全文
posted @ 2016-04-01 20:23
礼桀
阅读(163)
评论(0)
推荐(0)
摘要:
首先在敌人enemy 的脚本下面 然后进入子弹bullet脚本添加hp等于零的时候不检测碰撞的代码 阅读全文
posted @ 2016-04-01 18:40
礼桀
阅读(448)
评论(0)
推荐(0)
摘要:
这样就可以在inspector界面上去选择敌人的类型了 阅读全文
posted @ 2016-04-01 17:19
礼桀
阅读(201)
评论(0)
推荐(0)
摘要:
然后在enemy脚本中添加BeHit方法 阅读全文
posted @ 2016-04-01 17:07
礼桀
阅读(419)
评论(0)
推荐(0)
摘要:
using UnityEngine; using System.Collections; public class hero : MonoBehaviour { private bool isMouseDown = false; private Vector3 lastMousePosition=Vector3.zero; void Update () { ... 阅读全文
posted @ 2016-04-01 14:21
礼桀
阅读(511)
评论(0)
推荐(0)

浙公网安备 33010602011771号