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

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

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