AOI Test: reuse CreateGameObject with component

This commit is contained in:
vis2k 2021-08-07 13:39:43 +08:00
parent 5dad5db819
commit dccf1a95f1

View File

@ -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;