public IEnumerator loadskinE(string url) { while (!this.hasspawn) { yield return(null); } bool mipmap = GameManager.settings.UseMipmap; bool iteratorVariable1 = false; foreach (Renderer iteratorVariable2 in this.GetComponentsInChildren <Renderer>()) { if (iteratorVariable2.name.Contains("hair")) { if (!GameManager.linkHash[2].ContainsKey(url)) { WWW link = new WWW(url); yield return(link); Texture2D iteratorVariable4 = RCextensions.LoadImageRC(link, mipmap, 1000000); link.Dispose(); if (!GameManager.linkHash[2].ContainsKey(url)) { iteratorVariable1 = true; iteratorVariable2.material.mainTexture = iteratorVariable4; GameManager.linkHash[2].Add(url, iteratorVariable2.material); iteratorVariable2.material = (Material)GameManager.linkHash[2][url]; } else { iteratorVariable2.material = (Material)GameManager.linkHash[2][url]; } } else { iteratorVariable2.material = (Material)GameManager.linkHash[2][url]; } } } if (iteratorVariable1) { GameManager.instance.UnloadAssets(); } }