NumericChangeEvent_NotifyWatcher.cs 333 B

123456789101112
  1. namespace ETModel
  2. {
  3. // 分发数值监听
  4. [Event(EventIdType.NumbericChange)]
  5. public class NumericChangeEvent_NotifyWatcher: AEvent<long, NumericType, int>
  6. {
  7. public override void Run(long id, NumericType numericType, int value)
  8. {
  9. Game.Scene.GetComponent<NumericWatcherComponent>().Run(numericType, id, value);
  10. }
  11. }
  12. }