void OnActivate(bool state) { MolCheckBoxList p = gameObject.transform.parent.GetComponent<MolCheckBoxList>(); if (p == null) return; p.changeMoleculeState(gameObject.GetComponentInChildren<UILabel>().text, state); }