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