File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ public class CSVWriter
20
20
[ SerializeField , ReadOnly ] private string filePath ;
21
21
private StreamWriter eventWriter ;
22
22
private List < string > payload = new List < string > ( ) ;
23
- private bool is_active = false ;
23
+ private bool _is_active = false ;
24
+ public bool is_active => _is_active ;
24
25
25
26
public bool Initialize ( ) {
26
27
string dname = $ "{ Application . persistentDataPath } /{ Helpers . SaveSystemMethods . GetCurrentDateTime ( ) } ";
@@ -45,7 +46,7 @@ public bool Initialize() {
45
46
eventWriter . WriteLine ( String . Join ( ',' , columns ) ) ;
46
47
}
47
48
48
- is_active = true ;
49
+ _is_active = true ;
49
50
return true ;
50
51
}
51
52
@@ -104,10 +105,10 @@ public static long GetUnixTime() {
104
105
}
105
106
106
107
public void Disable ( ) {
107
- if ( is_active ) {
108
+ if ( _is_active ) {
108
109
eventWriter . Flush ( ) ;
109
110
eventWriter . Close ( ) ;
110
111
}
111
- is_active = false ;
112
+ _is_active = false ;
112
113
}
113
114
}
You can’t perform that action at this time.
0 commit comments