03 2016 档案
摘要:public void BulletShootting(float Speed) { transform.Translate(Vector3.up * speed * Time.deltaTime); if (transform.position.y > 5.2f) { Destroy(this.gameObject...
阅读全文
摘要:using UnityEngine; using System.Collections; public class fire : MonoBehaviour { public float rate = 0.2f; public GameObject bullet; private void Start() { OnFire(); } ...
阅读全文
摘要: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; //每...
阅读全文
摘要:1 public void BackGrandMove(float MoveSpeed)//使背景移动的方法 2 { 3 this.transform.Translate(Vector3.down * MoveSpeed * Time.deltaTime); 4 Vector3 position = this.transform.position; 5 ...
阅读全文

浙公网安备 33010602011771号