private void OnCompoundSelected(CompoundSelectMessage value) { Outline.enabled = _compound.Index == value.Index; /* * if( Outline.enabled ) * SetState( value.State ); */ }
public override void OnDestroy() { base.OnDestroy(); _compound = null; _compoundControlMessage = null; _compoundSelectMessage = null; _buttonStream = null; GameMessage.StopListen <CompoundSelectMessage>(OnCompoundSelected); }