Exemple #1
0
 // Use this for initialization
 void Start()
 {
     refr = Instantiate(prefab, TargetHelper.getPositionIn(GetComponent <Rigidbody> (), 10), Quaternion.identity);
 }
Exemple #2
0
 // Update is called once per frame
 void Update()
 {
     Destroy(refr);
     refr = Instantiate(prefab, TargetHelper.getPositionIn(GetComponent <Rigidbody> (), 10), Quaternion.identity);
 }