void OnDestroy() { if (m_TagMgr == null) { Debug.LogError("TagsManager not set for " + name + "!"); return; } m_TagMgr.removeMe(m_TagMgr.tags[index], gameObject); }