internal void UpdateData(MinimapHUDModel model) { sceneNameText.text = string.IsNullOrEmpty(model.sceneName) ? "Unnamed" : model.sceneName; playerPositionText.text = model.playerPosition; OnUpdateData?.Invoke(model); }
public MinimapHUDController(MinimapHUDModel model) { CommonScriptableObjects.playerCoords.OnChange += OnPlayerCoordsChange; minimapZoom.Set(1f); view = MinimapHUDView.Create(this); UpdateData(model); }
public void UpdateData(MinimapHUDModel model) { this.model = model; view?.UpdateData(this.model); }
void UpdateCurrentSceneData(MinimapHUDModel model) { currentSceneNameText.text = string.IsNullOrEmpty(model.sceneName) ? "Unnamed" : model.sceneName; currentSceneCoordsText.text = model.playerPosition; }