public virtual void OnEnable() { m_renderer = GetComponent<BatchCubeRenderer>(); Generate(); if (m_instances == null) { m_instances = new BatchCubeRenderer.InstanceData[0]; } for (int i = 0; i < m_instances.Length; ++i ) { m_instances[i].id = GenID(); } }
public virtual void OnEnable() { m_renderer = GetComponent <BatchCubeRenderer>(); Generate(); if (m_instances == null) { m_instances = new BatchCubeRenderer.InstanceData[0]; } for (int i = 0; i < m_instances.Length; ++i) { m_instances[i].id = GenID(); } }
public virtual void OnEnable() { m_renderer = GetComponent<BatchCubeRenderer>(); }
public virtual void OnEnable() { m_renderer = GetComponent <BatchCubeRenderer>(); }