Răsfoiți Sursa

修复:NumericComponent数值变化事件参数顺序错误

tanghai 7 ani în urmă
părinte
comite
14a5ab72ae

+ 2 - 2
Unity/Assets/Model/Module/Numeric/NumericChangeEvent_NotifyWatcher.cs

@@ -2,9 +2,9 @@
 {
 	// 分发数值监听
 	[Event(EventIdType.NumbericChange)]
-	public class NumericChangeEvent_NotifyWatcher: AEvent<NumericType, long, int>
+	public class NumericChangeEvent_NotifyWatcher: AEvent<long, NumericType, int>
 	{
-		public override void Run(NumericType numericType, long id, int value)
+		public override void Run(long id, NumericType numericType, int value)
 		{
 			Game.Scene.GetComponent<NumericWatcherComponent>().Run(numericType, id, value);
 		}