void Start() { m_Controller = gameObject.GetComponent <SceneObjectLoadController>(); if (m_Controller == null) { m_Controller = gameObject.AddComponent <SceneObjectLoadController>(); } m_Controller.Init(bounds.center, bounds.size, asyn, treeType); for (int i = 0; i < loadObjects.Count; i++) { m_Controller.AddSceneBlockObject(loadObjects[i]); } }
void OnEnable() { m_Target = (SceneObjectLoadController)target; }