Пример #1
0
    void Awake()
    {
        // 씬이 바뀌어도 계속 SendQueue를 사용하기 위해서
        // 아래 DontDestroyOnLoad 함수를 통해 SendQueue 객체를 파괴되지 않는 오브젝트로 만듭니다.
        // 자세한 설명은 아래 유니티 개발자문서를 참고해주세요.
        // https://docs.unity3d.com/kr/current/ScriptReference/Object.DontDestroyOnLoad.html
        DontDestroyOnLoad(this);

        // 만약 SendQueue가 초기화 되지 않았다면 초기화 수행
        if (SendQueue.IsInitialize == false)
        {
            // SendQueue는 시작과 동시에 초기화가 수행됩니다.
            // 디버그 로그 활성화, 예외 이벤트 핸들러 등록
            SendQueue.StartSendQueue(true, ExceptionEvent);
        }
    }