File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Assets/EditorCoroutines/Scripts Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,24 +45,24 @@ void OnGUI()
45
45
46
46
if ( GUILayout . Button ( "WaitUntil/WaitWhile" ) )
47
47
{
48
- _status = false ;
48
+ status = false ;
49
49
this . StartCoroutine ( ExampleWaitUntilWhile ( ) ) ;
50
50
}
51
51
52
- if ( GUILayout . Button ( "Switch For WaitUntil/WaitWhile:" + ( _status ? "On" : "Off" ) ) )
52
+ if ( GUILayout . Button ( "Switch For WaitUntil/WaitWhile:" + ( status ? "On" : "Off" ) ) )
53
53
{
54
- _status = ! _status ;
54
+ status = ! status ;
55
55
EditorUtility . SetDirty ( this ) ;
56
56
}
57
57
}
58
58
59
- private bool _status ;
59
+ private bool status ;
60
60
61
61
IEnumerator ExampleWaitUntilWhile ( )
62
62
{
63
- yield return new WaitUntil ( ( ) => _status ) ;
63
+ yield return new WaitUntil ( ( ) => status ) ;
64
64
Debug . Log ( "Switch On" ) ;
65
- yield return new WaitWhile ( ( ) => _status ) ;
65
+ yield return new WaitWhile ( ( ) => status ) ;
66
66
Debug . Log ( "Switch Off" ) ;
67
67
}
68
68
You can’t perform that action at this time.
0 commit comments