public virtual void OnInit() { if (m_IsInited) { throw new System.InvalidOperationException("Trying to initialize twice."); } m_IsInited = true; }