123456789101112131415161718192021222324 |
- namespace assetBundleUtility
- {
- using System.Collections;
- using System.Collections.Generic;
-
- using UnityEngine;
-
- public static class StringExtension
- {
- public static List<string> ReplaceAll(this List<string> strings, string oldValue, string newValue)
- {
- List<string> results = new List<string>();
- for (int i = 0; i < strings.Count; i++)
- {
- results.Add(strings[i].Replace(oldValue, newValue));
- }
- return results;
- }
- }
- }
|