摘要:
using UnityEngine;using System.Collections;/// /// 2014_3_26 修改/// [AddComponentMenu("MyGame/RocketBase")]public class RocketBase : MonoBehaviour { //子弹的发射的间隔 public float _rate = 1; //子弹飞行的速度 public float _speed = 1; //子弹的生存时间/攻击范围 public float _liveTime = 2; //子弹的威力 public ... 阅读全文
摘要:
using UnityEngine;using System.Collections;using System.Collections.Generic;/// /// 2014_3_26 修改/// [AddComponentMenu("MyGame/PlayerBase")]public class PlayerBase : MonoBehaviour { //飞机控制开关 public bool _isActive=true; //飞机的速度 [SerializeField] private float _speed=10; //飞机移动的方向 p... 阅读全文