Parcourir la source

Fixed disambiguation in GenericEvents

James Peret il y a 2 ans
Parent
commit
d741a833d2
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      Runtime/EventManager/GenericEvents.cs

+ 2 - 0
Runtime/EventManager/GenericEvents.cs

@@ -245,6 +245,7 @@ namespace KairoEngine.Core
         
         public static Dictionary<string, System.Action<string, float>> stringFloatList = new Dictionary<string, System.Action<string, float>>();
         
+        public static void StartListeningForStringFloat(string title, System.Action<string, float> listener) => StartListening(title, listener);
         public static void StartListening(string title, System.Action<string, float> listener)
         {
             System.Action<string, float> action = null;
@@ -260,6 +261,7 @@ namespace KairoEngine.Core
             }
         }
 
+        public static void StopListeningForStringFloat(string title, System.Action<string, float> listener) => StopListening(title, listener);
         public static void StopListening(string title, System.Action<string, float> listener)
         {
             System.Action<string, float> action = null;