摘要:
using UnityEngine; using System.Collections; public class fire : MonoBehaviour { public float rate = 0.2f; public GameObject bullet; private void Start() { OnFire(); } ... 阅读全文
posted @ 2016-03-31 15:43
礼桀
阅读(334)
评论(0)
推荐(0)
摘要:
1 using UnityEngine; 2 using System.Collections; 3 4 public class hero : MonoBehaviour 5 { 6 private bool animation = true; //动画开关 7 8 public int frameCountPerSecond = 10; //每... 阅读全文
posted @ 2016-03-31 15:19
礼桀
阅读(458)
评论(0)
推荐(0)
摘要:
1 public void BackGrandMove(float MoveSpeed)//使背景移动的方法 2 { 3 this.transform.Translate(Vector3.down * MoveSpeed * Time.deltaTime); 4 Vector3 position = this.transform.position; 5 ... 阅读全文
posted @ 2016-03-31 15:13
礼桀
阅读(170)
评论(0)
推荐(0)

浙公网安备 33010602011771号