mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
AOI Test: reuse CreateGameObject with component
This commit is contained in:
parent
5dad5db819
commit
dccf1a95f1
@ -14,8 +14,7 @@ public override void SetUp()
|
||||
base.SetUp();
|
||||
|
||||
// create AOI GameObject
|
||||
CreateGameObject(out GameObject go);
|
||||
aoi = go.AddComponent<DistanceInterestManagement>();
|
||||
CreateGameObject(out GameObject go, out aoi);
|
||||
aoi.visRange = 10;
|
||||
// setup server aoi since InterestManagement Awake isn't called
|
||||
NetworkServer.aoi = aoi;
|
||||
|
Loading…
Reference in New Issue
Block a user