Sfoglia il codice sorgente

Fixed disambiguation in GenericEvents

James Peret 2 anni fa
parent
commit
d741a833d2
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;