Implement scene transition

This commit is contained in:
henriquenakashima 2020-09-28 23:07:12 -04:00
parent edc3abff84
commit 0b295af56b
6 changed files with 30 additions and 16 deletions

View file

@ -16,7 +16,6 @@ public class StoryDisplay : MonoBehaviour
private StoryBox storyBoxLeft;
void Awake() {
Debug.Log("StoryDisplay Awake");
this.storyBoxLeft = GameObject.Instantiate(this.storyBox, this.uiCanvas.transform);
RectTransform rt = this.storyBoxLeft.GetComponent<RectTransform>();
rt.anchorMin = new Vector2(0, 0.5f);
@ -28,7 +27,6 @@ public class StoryDisplay : MonoBehaviour
}
public IEnumerator DisplayText(string message, DialogPosition position) {
Debug.Log("DisplayText " + message);
if (position == DialogPosition.Left) {
yield return this.storyBoxLeft.Display(message);
} else {