Beispiel #1
0
 private void OnEnable()
 {
     if (_floatTypeValidator)
     {
         _floatSource.BindEvent(UpdateValue);
         UpdateValue(_floatSource);
     }
     else
     {
         _intSource.BindEvent(UpdateValue);
         UpdateValue(_intSource);
     }
 }
Beispiel #2
0
 private void OnEnable() => m_source.BindEvent(UpdateValue);