| | 1 | | using DCL.Helpers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | public class MinimapMetadataController : MonoBehaviour |
| | 5 | | { |
| 0 | 6 | | private MinimapMetadata minimapMetadata => MinimapMetadata.GetMetadata(); |
| 0 | 7 | | public static MinimapMetadataController i { get; private set; } |
| | 8 | |
|
| | 9 | | public void Awake() |
| | 10 | | { |
| 0 | 11 | | i = this; |
| 0 | 12 | | minimapMetadata.Clear(); |
| 0 | 13 | | } |
| | 14 | |
|
| | 15 | | public void UpdateMinimapSceneInformation(string scenesInfoJson) |
| | 16 | | { |
| 0 | 17 | | var scenesInfo = Utils.ParseJsonArray<MinimapMetadata.MinimapSceneInfo[]>(scenesInfoJson); |
| | 18 | |
|
| 0 | 19 | | foreach (var sceneInfo in scenesInfo) |
| | 20 | | { |
| 0 | 21 | | minimapMetadata.AddSceneInfo(sceneInfo); |
| | 22 | | } |
| 0 | 23 | | } |
| | 24 | | } |