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
2020 [ SerializeField , ReadOnly ] private string filePath ;
2121 private StreamWriter eventWriter ;
2222 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 ;
2425
2526 public bool Initialize ( ) {
2627 string dname = $ "{ Application . persistentDataPath } /{ Helpers . SaveSystemMethods . GetCurrentDateTime ( ) } ";
@@ -45,7 +46,7 @@ public bool Initialize() {
4546 eventWriter . WriteLine ( String . Join ( ',' , columns ) ) ;
4647 }
4748
48- is_active = true ;
49+ _is_active = true ;
4950 return true ;
5051 }
5152
@@ -104,10 +105,10 @@ public static long GetUnixTime() {
104105 }
105106
106107 public void Disable ( ) {
107- if ( is_active ) {
108+ if ( _is_active ) {
108109 eventWriter . Flush ( ) ;
109110 eventWriter . Close ( ) ;
110111 }
111- is_active = false ;
112+ _is_active = false ;
112113 }
113114}
You can’t perform that action at this time.
0 commit comments