Skip to content

Commit 50ecb5d

Browse files
Ryan KimRyan Kim
authored andcommitted
updated so that 'is_active' is now public
1 parent 852c061 commit 50ecb5d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CSVWriter/CSVWriter.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)