File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55using UnityEngine . Events ;
66using UnityEngine . InputSystem ;
77using UnityEngine . InputSystem . Controls ;
8+ using UnityEngine . InputSystem . Editor ;
89using UnityEngine . InputSystem . Layouts ;
910using UnityEngine . InputSystem . LowLevel ;
1011using UnityEngine . Networking . PlayerConnection ;
@@ -268,8 +269,9 @@ public void Remote_ResettingDevice_WillSendChangeToRemotes()
268269 public void Remote_CanConnectInputSystemsOverEditorPlayerConnection ( )
269270 {
270271#if UNITY_EDITOR
271- // Ensure the singleton is initialized deterministically in editor.
272- _ = RemoteInputPlayerConnection . instance ;
272+ var instance = RemoteInputPlayerConnection . instance ;
273+ Assert . That ( instance , Is . Not . Null ) ;
274+ Assert . That ( ReferenceEquals ( instance , RemoteInputPlayerConnectionEditor . GetInstance ( ) ) , Is . True ) ;
273275#endif
274276 var connectionToEditor = ScriptableObject . CreateInstance < RemoteInputPlayerConnection > ( ) ;
275277 var connectionToPlayer = ScriptableObject . CreateInstance < RemoteInputPlayerConnection > ( ) ;
You can’t perform that action at this time.
0 commit comments