Example #1
0
    internal void UpdateData(MinimapHUDModel model)
    {
        sceneNameText.text      = string.IsNullOrEmpty(model.sceneName) ? "Unnamed" : model.sceneName;
        playerPositionText.text = model.playerPosition;

        OnUpdateData?.Invoke(model);
    }
Example #2
0
    public MinimapHUDController(MinimapHUDModel model)
    {
        CommonScriptableObjects.playerCoords.OnChange += OnPlayerCoordsChange;
        minimapZoom.Set(1f);

        view = MinimapHUDView.Create(this);
        UpdateData(model);
    }
Example #3
0
 public void UpdateData(MinimapHUDModel model)
 {
     this.model = model;
     view?.UpdateData(this.model);
 }
Example #4
0
 void UpdateCurrentSceneData(MinimapHUDModel model)
 {
     currentSceneNameText.text = string.IsNullOrEmpty(model.sceneName) ? "Unnamed" : model.sceneName;
     currentSceneCoordsText.text = model.playerPosition;
 }