r184 vs r185
......
6060
== csharp 암호화 코드 ==
6161
오류가 많을 예정(ai 작성).
6262
63
=== 본 코드 ===
6364
{{{#!syntax csharp
6465
using System;
6566
using System.IO;
......
402403
}
403404
} }}}
404405
406
=== 실행 코드 ===
405407
{{{#!syntax csharp
406408
using UnityEngine;
407409
410
/// <summary>
411
/// SecureManager의 Save 및 Load 메서드를 시연하는 예시 스크립트입니다.
412
/// </summary>
408413
public class ExampleUsage : MonoBehaviour
409414
{
410415
private readonly string testPlayerName = "Gemini_Test_User";
......
413418
414419
void Start()
415420
{
421
// SecureManager가 씬에 존재하는지 확인합니다.
416422
if (SecureManager.Instance == null)
417423
{
418424
Debug.LogError("SecureManager 인스턴스를 찾을 수 없습니다. SecureManager.cs를 GameObject에 추가했는지 확인해주세요.");
419425
return;
420426
}
427
428
// 1. 데이터 저장 테스트
421429
SaveTestData();
422430
431
// 2. 데이터 로드 테스트
423432
LoadTestData();
424433
434
// 3. 데이터 업데이트 및 재저장
425435
UpdateAndSaveTestData();
426
436
437
// 4. 업데이트된 데이터 로드 확인
427438
LoadTestData();
428439
}
429440
......
470481
471482
void OnDestroy()
472483
{
484
// 애플리케이션 종료 시 디버거 체크가 활성화된 경우 에러 방지
473485
if (SecureManager.Instance != null && SecureManager.Instance.EnableAntiDebugChecks)
474486
{
475487
Debug.Log("SecureManager: Anti-Debug Checks가 활성화되어 있습니다.");
......