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