Skip to content

Commit 2d0f015

Browse files
committed
Needed package corrections
Corrections due to: 1) 'GhostBehaviour' is inaccessible due to its protection level 2) Inconsistent accessibility: property type 'NetcodeWorld' is less accessible than property 'NetworkManager.NetcodeWorld' etc
1 parent 8fe0b7a commit 2d0f015

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

com.unity.netcode.gameobjects/Editor/NetworkObjectEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private static void OnApplicationStart()
4242
/// <param name="gameObject">The <see cref="GameObject"/> with the <see cref="GhostObject"/> component being removed.</param>
4343
private static void OnGhostObjectPreRemoval(GameObject gameObject)
4444
{
45-
var ghostBehaviours = gameObject.GetComponentsInChildren<GhostBehaviour>();
45+
var ghostBehaviours = gameObject.GetComponentsInChildren<NetworkObjectBridge>();
4646
for (int i = ghostBehaviours.Length - 1; i >= 0; i--)
4747
{
4848
DestroyImmediate(ghostBehaviours[i], true);

com.unity.netcode.gameobjects/Runtime/Components/Helpers/NetworkObjectBridge.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Unity.Netcode
1313

1414
[DefaultExecutionOrder(GhostObject.ExecutionOrder + 1)]
1515
//BREAK --- Fix this on UNIFIED side 1st
16-
public partial class NetworkObjectBridge : GhostBehaviour
16+
internal partial class NetworkObjectBridge : GhostBehaviour
1717
{
1818
// DefaultExecutionOrder
1919
// TODO: Define a const for the value used on GhostObject and use that value

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ private bool CanStart(StartType type)
13601360
/// <summary>
13611361
/// The world instance assigned to this NetworkManager instance.
13621362
/// </summary>
1363-
public NetcodeWorld NetcodeWorld { get; internal set; }
1363+
internal NetcodeWorld NetcodeWorld { get; set; }
13641364
internal void InitializeNetcodeWorld()
13651365
{
13661366
if (NetcodeWorld != null)

0 commit comments

Comments
 (0)