12-15-2018 01:25 PM
12-17-2018 05:55 PM
12-30-2018 11:20 AM
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
....
public BoxCollider bc;
public List<GameObject> BoxColliders = new List<GameObject>();
....
void Start () {
StartCoroutine(drawBoxes());
}
public IEnumerator drawBoxes(){
foreach(GameObject data in BoxColliders){
bc = data.AddComponent<BoxCollider>();
yield return new WaitForEndOfFrame();
}
}
12-31-2018 06:09 AM