Documentation for the Unity C# Library
Loading...
Searching...
No Matches
SimpleConsumerCoro.cs
Go to the documentation of this file.
1using PixoVR.Core;
2using System.Collections;
3using UnityEngine;
4
5class SimpleConsumerCoro : MonoBehaviour
6{
7 void Awake()
8 {
9 StartCoroutine(Coro());
10 }
11
12 IEnumerator Coro()
13 {
14 var listener = EventBetter.ListenWait<TextMessage>();
15 yield return listener;
16 Debug.Log(listener.First.text, this);
17 }
18}
Intentionally made partial, in case you want to extend it easily.