The arrow server can only be created after the bow server's ownership is done. Should be tested.
This commit is contained in:
@@ -29,7 +29,15 @@ namespace _PROJECT.Multiplayer.NewBow
|
|||||||
if (_notch == null)
|
if (_notch == null)
|
||||||
Debug.LogError("Notch not found");
|
Debug.LogError("Notch not found");
|
||||||
|
|
||||||
CreateArrowServer();
|
//CreateArrowServer();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnOwnershipServer(NetworkConnection prevOwner)
|
||||||
|
{
|
||||||
|
base.OnOwnershipServer(prevOwner);
|
||||||
|
|
||||||
|
if (Owner.IsValid)
|
||||||
|
CreateArrowServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnStartClient()
|
public override void OnStartClient()
|
||||||
|
|||||||
Reference in New Issue
Block a user