Browse Source

Fixed disambiguation in GenericEvents

James Peret 2 years ago
parent
commit
d741a833d2
1 changed files with 2 additions and 0 deletions
  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 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)
         public static void StartListening(string title, System.Action<string, float> listener)
         {
         {
             System.Action<string, float> action = null;
             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)
         public static void StopListening(string title, System.Action<string, float> listener)
         {
         {
             System.Action<string, float> action = null;
             System.Action<string, float> action = null;