使用Unity3d开发VR有几个月了,据说string的 Indexof 方法要尽量避免频繁使用,在把自己的框架移植成Unity3d的过程中,恰巧有个地方需要频繁调用,于是突发奇想,用了下面的办法一定程度替代Indexof方法的使用。 using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Text; public static class SDExtension { public static bool HasSub(this string target, str…
2016-08-09 11:08 · 工作历程