Ver Fonte

Fixed disambiguation in GenericEvents

James Peret há 2 anos atrás
pai
commit
d741a833d2
1 ficheiros alterados com 2 adições e 0 exclusões
  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;