Skip to content

Commit 3aacf4d

Browse files
committed
fix snapTransform script in location based game demo scene after the map event changes
1 parent 194d359 commit 3aacf4d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Samples~/LocationBasedGame/Scripts/SnapTransformToLocationProvider.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ private void Start()
3232
_mapCore.Initialized += (map) =>
3333
{
3434
_map = map;
35-
map.OnFirstViewCompleted += () =>
36-
{
37-
_locationProvider.DefaultLocationProvider.OnLocationUpdated += OnDefaultLocationProviderOnOnLocationUpdated;
38-
};
35+
_locationProvider.DefaultLocationProvider.OnLocationUpdated += OnDefaultLocationProviderOnOnLocationUpdated;
3936
};
4037
}
4138

0 commit comments

Comments
 (0)