CheckBox.OnActivate C# (CSharp) Method

OnActivate() private method

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