mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: InterestManagement Awake
- Don't check for active server or client - static `aoi` must always be set
This commit is contained in:
parent
294011803b
commit
893cb4590a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user