Implement scene transition
This commit is contained in:
parent
edc3abff84
commit
0b295af56b
6 changed files with 30 additions and 16 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue