No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EnumerableExtensions.cs 565B

1234567891011121314151617181920212223
  1. #if UNITY_EDITOR
  2. using System;
  3. using System.Collections.Generic;
  4. namespace UnityEngine.InputSystem.Editor
  5. {
  6. internal static class EnumerableExtensions
  7. {
  8. public static void ForEach<T>(this IEnumerable<T> enumerable, Action<T, int> action)
  9. {
  10. int index = 0;
  11. foreach (var item in enumerable)
  12. action(item, index++);
  13. }
  14. public static string Join<T>(this IEnumerable<T> enumerable, string separator)
  15. {
  16. return string.Join(separator, enumerable);
  17. }
  18. }
  19. }
  20. #endif