Unity3D经典题型
1、用数组存储3个cube,点击鼠标一次消失一个
public class destory : MonoBehaviour {
public GameObject[]cube;
int i=0;
float fireTime = 0.5f;
float nextTime = 0.0f;
void Update () {
if (Input.GetButtonDown("Fire1"))
{
int i=0;
float fireTime = 0.5f;
float nextTime = 0.0f;
void Update () {
if (Input.GetButtonDown("Fire1"))
{