Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkCompiler / InkStringConversionExtensions.cs
@Rackday Rackday on 29 Oct 421 bytes Major Update
  1. using System.Collections.Generic;
  2. namespace Ink
  3. {
  4. public static class InkStringConversionExtensions
  5. {
  6. public static string[] ToStringsArray<T>(this List<T> list) {
  7. int count = list.Count;
  8. var strings = new string[count];
  9. for(int i = 0; i < count; i++) {
  10. strings[i] = list[i].ToString();
  11. }
  12. return strings;
  13. }
  14. }
  15. }