Exemplo n.º 1
0
 IEnumerator SavePic(Sprite pic)
 {
     byte[] by = pic.texture.EncodeToPNG();
     yield return(new WaitUntil(() => MyTool.SaveLocalFile(target.currentUser.UName + "2.png", by)));
 }