fix: InterestManagement Awake

- Don't check for active server or client
- static `aoi` must always be set
This commit is contained in:
MrGadget1024 2021-12-29 08:19:27 -05:00
parent 294011803b
commit 893cb4590a

View File

@ -10,7 +10,8 @@ namespace Mirror
public abstract class InterestManagement : MonoBehaviour
{
// Awake configures InterestManagement in NetworkServer/Client
[ServerCallback]
// Do NOT check for active server or client here.
// Awake must always set the static aoi references.
void Awake()
{
if (NetworkServer.aoi == null)