private void OnEnable() { for (int i = 0; i < messagesToListenFor.Length; i++) { var messageEvent = messagesToListenFor[i]; MessageSystem.AddListener(this, messageEvent.message, messageEvent.parameter); } }
protected virtual void OnEnable() { MessageSystem.AddListener(this, RequestDataSourceChangeValueMessage, dataSourceName); }