コード例 #1
0
 ///<summary>
 /// Calls on the FileAccessUtil to save a photo with the file name and Texture2D object passed.
 ///</summary>
 ///<param name="photo">A Texture2D object representing the photo you are wishing to save.</param>
 ///<param name="fileName">A string representing the file name you wish to save the photo under.</param>
 ///<returns>Returns a bool signalling whether the photo was successfully saved or not.</returns>
 public bool SavePhoto(Texture2D photo, string fileName)
 {
     return(FileAccessUtil.SaveRewardPic(photo, fileName));
 }