克隆的脚本
using UnityEngine;
using System.Collections;
public class 坠落实验 : MonoBehaviour {
float times = 1f;
public GameObject Cube;
GameObject targert = null;
// Use this for initialization
void Start () {
}
void Update()
{
times -= Time.deltaTime;
if (times < 0)
{
GameObject ogj = (GameObject)Instantiate(Cube);
obj.transform.position = new Vector3(0, 0.25f, 0);
times = 1f;
}
}
}
using UnityEngine;
using System.Collections;
public class 坠落实验 : MonoBehaviour {
float times = 1f;
public GameObject Cube;
GameObject targert = null;
// Use this for initialization
void Start () {
}
void Update()
{
times -= Time.deltaTime;
if (times < 0)
{
GameObject ogj = (GameObject)Instantiate(Cube);
obj.transform.position = new Vector3(0, 0.25f, 0);
times = 1f;
}
}
}


