Skip to content

Commit 02b9d7a

Browse files
committed
rename _status to status
1 parent b152a97 commit 02b9d7a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Assets/EditorCoroutines/Scripts/CoroutineWindowExample.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ void OnGUI()
4545

4646
if (GUILayout.Button("WaitUntil/WaitWhile"))
4747
{
48-
_status = false;
48+
status = false;
4949
this.StartCoroutine(ExampleWaitUntilWhile());
5050
}
5151

52-
if (GUILayout.Button("Switch For WaitUntil/WaitWhile:" + (_status ? "On" : "Off")))
52+
if (GUILayout.Button("Switch For WaitUntil/WaitWhile:" + (status ? "On" : "Off")))
5353
{
54-
_status = !_status;
54+
status = !status;
5555
EditorUtility.SetDirty(this);
5656
}
5757
}
5858

59-
private bool _status;
59+
private bool status;
6060

6161
IEnumerator ExampleWaitUntilWhile()
6262
{
63-
yield return new WaitUntil(()=>_status);
63+
yield return new WaitUntil(()=>status);
6464
Debug.Log("Switch On");
65-
yield return new WaitWhile(()=>_status);
65+
yield return new WaitWhile(()=>status);
6666
Debug.Log("Switch Off");
6767
}
6868

0 commit comments

Comments
 (0)