Documentation for the Unity C# Library
Loading...
Searching...
No Matches
SimpleConsumerAsync.cs
Go to the documentation of this file.
1using PixoVR.Core;
2using UnityEngine;
3
4class SimpleConsumerAsync : MonoBehaviour
5{
6#if NET_4_6
7 async void Awake()
8 {
9 var msg = await EventBetter.ListenAsync<TextMessage>();
10 Debug.Log(msg.text, this);
11 }
12#endif
13}
Intentionally made partial, in case you want to extend it easily.