OLD_STEP_LIST_EDITOR
Documentation for the Unity C# Library
Loading...
Searching...
No Matches
NoAllocConsumer.cs
Go to the documentation of this file.
1
using
PixoVR.Core
;
2
using
System;
3
using
System.Collections.Generic;
4
using
System.Linq;
5
using
System.Text;
6
using
UnityEngine;
7
8
public
class
NoAllocConsumer
: MonoBehaviour
9
{
10
private
int
count
= 0;
11
12
private
void
Awake
()
13
{
14
EventBetter
.Listen(
this
, (
TextMessage
msg) => ++
count
);
15
}
16
17
private
void
OnDestroy
()
18
{
19
Debug.Log(
"Messages received: "
+
count
);
20
}
21
}
NoAllocConsumer
Definition
NoAllocConsumer.cs:9
NoAllocConsumer.OnDestroy
void OnDestroy()
Definition
NoAllocConsumer.cs:17
NoAllocConsumer.count
int count
Definition
NoAllocConsumer.cs:10
NoAllocConsumer.Awake
void Awake()
Definition
NoAllocConsumer.cs:12
PixoVR.Core.EventBetter
Intentionally made partial, in case you want to extend it easily.
Definition
EventBetter.cs:20
TextMessage
Definition
SimpleProducer.cs:5
PixoVR.Core
Definition
EventBetter.cs:14
com.pixovr.coreunitysdk
Samples
EventBetter
NoAlloc
NoAllocConsumer.cs
Generated
Wed Oct 9 2024 19:24:02
by Doxygen version
1.10.0