public void CommitGame() { //Example Image Path: give statics path of image on phone string ImagePath = Application.streamingAssetsPath; if (InputFieldDesc.text != null && InputFieldProgress.text != null && InputFieldPlayedTime.text != null) { string description = InputFieldDesc.text; long playedTime = long.Parse(InputFieldPlayedTime.text); long progress = long.Parse(InputFieldPlayedTime.text); saveGameManager.Commit(description, playedTime, progress, ImagePath, "png"); } else { Debug.Log("[HMSP:] Fill box"); } }