Skip to content

Instantly share code, notes, and snippets.

@tsubaki tsubaki/Sample2.cs
Created Nov 4, 2018

What would you like to do?
using System.Collections.Generic;
using UnityEngine;
public class Sample2 : MonoBehaviour
[SerializeField] List<string> messages;
[SerializeField] UnityEngine.UI.Text messageBox;
private List<string>.Enumerator enumerator;
void Start()
enumerator = messages.GetEnumerator();
public void OnClick()
if( enumerator.MoveNext())
messageBox.text = enumerator.Current;

This comment has been minimized.

Copy link
Owner Author

commented Nov 4, 2018


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.