Ejemplo n.º 1
0
 public void RefreshView(Dialogue_ModelCollection modelCollection)
 {
     DialogueTextMesh.text = modelCollection.DialogueWindowString;
     LayoutRebuilder.ForceRebuildLayoutImmediate(TextMeshRect);
     Tile.sizeDelta = new Vector2(Tile.sizeDelta.x, TextMeshRect.sizeDelta.y + 5f);
     DialogueTextMesh.transform.localPosition = new Vector3(DialogueTextMesh.transform.localPosition.x, (TextMeshRect.sizeDelta.y / 2f) * -1, DialogueTextMesh.transform.localPosition.z);
 }
Ejemplo n.º 2
0
 public void ConstructView(Dialogue_ModelCollection modelCollection)
 {
     RefreshView(modelCollection);
 }