Google Drive for Unity3D
Google Drive for Unity3D plugin.
Upload, explore, download files in someone's Google Drive.
And store your secure data such as score with AppData.
GitHub: https://github.com/midworld/unity-googledrive
and Doxygen Docs
Code:
var drive = new GoogleDrive(); drive.ClientID = "YOUR CLIENT ID"; drive.ClientSecret = "YOUR CLIENT SECRET"; // Request authorization. if (authorization.Current is Exception) { yield break; } // Authorization succeeded. // Upload a text file. // Get all files. var listFiles = drive.ListAllFiles(); var files = GoogleDrive.GetResult<List<GoogleDrive.File>>(listFiles); if (files != null) { foreach (var file in files) { // Download a text file and print. if (file.Title.EndsWith(".txt")) { var download = drive.DownloadFile(file); } } }
Code:
// Upload score in 'AppData'. int score = 10000; // User cannot see 'score.txt'. Only your app can see this file.
'잡다한것들전부 > 팁' 카테고리의 다른 글
| 유니티 2d rpg 개발 (0) | 2013.12.11 |
|---|---|
| 유니티 2d 게임 개발 (0) | 2013.12.11 |
| [펌]유니티 구글드라이브 연동 소스 (0) | 2013.12.10 |
| 유니티 포물선 공식 (1) | 2013.12.09 |
| 유니티 대화 예제 (0) | 2013.12.09 |
| 유니티 text 파일로 저장하는 법 (0) | 2013.12.09 |
Trackback 0 And
Comment 0


