OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
SimpleConsumerCoro.cs
Go to the documentation of this file.
1
using
PixoVR.Core
;
2
using
System.Collections;
3
using
UnityEngine;
4
5
class
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
}
PixoVR.Core.EventBetter
Intentionally made partial, in case you want to extend it easily.
Definition
EventBetter.cs:20
SimpleConsumerCoro
Definition
SimpleConsumerCoro.cs:6
SimpleConsumerCoro.Awake
void Awake()
Definition
SimpleConsumerCoro.cs:7
SimpleConsumerCoro.Coro
IEnumerator Coro()
Definition
SimpleConsumerCoro.cs:12
TextMessage
Definition
SimpleProducer.cs:5
PixoVR.Core
Definition
EventBetter.cs:14
com.pixovr.coreunitysdk
Samples
EventBetter
Simple
SimpleConsumerCoro.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0