@@ -733,8 +733,8 @@ public IEnumerator SetUp()
733733#if UNIFIED_NETCODE
734734 private void RegisterPendingGhost ( NetworkObject networkObject , ulong networkObjectId )
735735 {
736- var ghost = networkObject . GetComponent < GhostAdapter > ( ) ;
737- Assert . IsNotNull ( ghost , $ "[RegisterPendingGhost][NetworkObject-{ networkObjectId } ] Has no { nameof ( GhostAdapter ) } !") ;
736+ var ghost = networkObject . GetComponent < GhostObject > ( ) ;
737+ Assert . IsNotNull ( ghost , $ "[RegisterPendingGhost][NetworkObject-{ networkObjectId } ] Has no { nameof ( GhostObject ) } !") ;
738738 foreach ( var networkManager in m_NetworkManagers )
739739 {
740740 // If the world matches, then register the instance with this NetworkManager's spawn manager.
@@ -1837,9 +1837,9 @@ protected void DestroySceneNetworkObjects()
18371837 {
18381838#if UNIFIED_NETCODE
18391839 // Handle removing the prefab reference and destroying it
1840- // and then destroying the ghostAdapter prior to destroying
1840+ // and then destroying the GhostObject prior to destroying
18411841 // a hybrid prefab.
1842- var ghostAdapter = networkObject . GetComponent < GhostAdapter > ( ) ;
1842+ var ghostAdapter = networkObject . GetComponent < GhostObject > ( ) ;
18431843 if ( ghostAdapter != null )
18441844 {
18451845 if ( ghostAdapter . prefabReference != null )
@@ -2423,10 +2423,10 @@ protected GameObject CreateHybridPrefab(string baseName, bool moveToDDOL = true)
24232423
24242424 // When adding a Hybrid/Ghost prefab:
24252425 // - We disabled the GameObject prior to adding the GhostPrefabReference (so IsPrefab() == true).
2426- // - Add the GhostAdapter and GhostPrefabReference
2426+ // - Add the GhostObject and GhostPrefabReference
24272427 // - Then set it back to active.
24282428 gameObject . SetActive ( false ) ;
2429- var adapter = gameObject . AddComponent < GhostAdapter > ( ) ;
2429+ var adapter = gameObject . AddComponent < GhostObject > ( ) ;
24302430 // Mark the reference as post processing to avoid registering this instance automatically.
24312431 GhostPrefabReference . s_IsPostProcessing = true ;
24322432 adapter . prefabReference = ScriptableObject . CreateInstance < GhostPrefabReference > ( ) ;
@@ -2443,7 +2443,7 @@ protected GameObject CreateHybridPrefab(string baseName, bool moveToDDOL = true)
24432443 // with the dependency to prediction manual test).
24442444 adapter . SupportedGhostModes = GhostModeMask . Interpolated ;
24452445
2446- // Once done with setting up the GhostAdapter , we can set it back to active in the hierarchy
2446+ // Once done with setting up the GhostObject , we can set it back to active in the hierarchy
24472447 gameObject . SetActive ( true ) ;
24482448
24492449 // GhostBehaviours that are part of a prefab will not invoke Ghost.InternalAcquireEntityReference
@@ -2460,7 +2460,7 @@ protected GameObject CreateHybridPrefab(string baseName, bool moveToDDOL = true)
24602460 no . NetworkObjectBridge = bridge ;
24612461
24622462 // Disable transform synchronization for NetworkObject serialization
2463- // since that is handled by the GhostAdapter .
2463+ // since that is handled by the GhostObject .
24642464 no . SynchronizeTransform = false ;
24652465
24662466 // Turn it into a test prefab
0 commit comments