File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Assets/SharedAssets/Benchmark Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
1
using System . Collections . Generic ;
3
2
using System . Linq ;
4
3
using System . Text ;
5
4
using UnityEngine ;
6
5
using UnityEngine . EventSystems ;
7
- using UnityEngine . Rendering . Universal ;
8
6
using UnityEngine . SceneManagement ;
9
7
using UnityEngine . Serialization ;
10
8
using UnityEngine . UIElements ;
@@ -187,13 +185,7 @@ private void Awake()
187
185
188
186
_instance = this ;
189
187
DontDestroyOnLoad ( this ) ;
190
-
191
- var playerManager = FindFirstObjectByType < PlayerManager > ( ) ;
192
- if ( playerManager != null )
193
- {
194
- playerManager . gameObject . SetActive ( false ) ;
195
- }
196
-
188
+
197
189
UnityEngine . Cursor . lockState = CursorLockMode . None ;
198
190
}
199
191
@@ -316,12 +308,6 @@ private void CloseBenchmark()
316
308
{
317
309
UnityEngine . Object . Destroy ( this . gameObject ) ;
318
310
319
- var playerManager = FindFirstObjectByType < PlayerManager > ( ) ;
320
- if ( playerManager != null )
321
- {
322
- playerManager . gameObject . SetActive ( true ) ;
323
- }
324
-
325
311
UnityEngine . Cursor . lockState = CursorLockMode . Locked ;
326
312
327
313
Screen . sleepTimeout = _previousSleepTimeout ;
You can’t perform that action at this time.
0 commit comments