// Start is called before the first frame update void Start() { model = gameObject.GetComponent <CloudsModel>(); int childern_count = transform.childCount; model.start_pos = new Vector3[childern_count]; model.pos = new Vector3[childern_count]; for (int i = 0; i < childern_count; ++i) { model.start_pos[i] = transform.GetChild(i).position; model.pos[i] = transform.GetChild(i).position; } }
void Start() { model = gameObject.GetComponent <CloudsModel>(); }