Ejemplo n.º 1
0
        private void OnEnable()
        {
            Application.logMessageReceived += LogCallbackHandler;
            _setting = DataUtils.LoadDataFromJson <LogSetting>(LogSetting.PATH);

            if (_setting.beforeSaveFileName != null && !string.IsNullOrEmpty(_setting.beforeSaveFileName))
            {
                UploadToGoogleDrive(_setting.beforeSaveFileName);
            }

            Init();
        }
Ejemplo n.º 2
0
        private void OnEnable()
        {
            Application.logMessageReceived += LogCallbackHandler;
            _setting = DataUtility.LoadDataFromJson <LogSetting>(LogSetting.PATH);
            Observable.Interval(System.TimeSpan.FromMinutes(_setting.intervalMinutes)).Subscribe(_ =>
            {
                UploadToGoogleDrive(_fileName);
            }).AddTo(this);

            if (_setting.beforeSaveFileName.IsNotNullOrEmpty())
            {
                UploadToGoogleDrive(_setting.beforeSaveFileName);
            }

            Init();
        }