NumericChangeEvent_NotifyWatcher.cs 333 B

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