summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/SendEventOnTimer.asset
blob: 36b5cf3926b852a4e6f711ea0f04a35a90b5bc41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 0}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: 4f11136daadff0b44ac2278a314682ab, type: 3}
  m_Name: SendEventOnTimer
  m_EditorClassIdentifier: 
  serializedUdonProgramAsset: {fileID: 11400000, guid: a446c6af7d1199749baa6d1faf82a075,
    type: 2}
  udonAssembly: ".data_start\r\n\r\n    .export target\r\n    .export eventName\r\n   
    .export duration\r\n    \r\n    __Boolean_0: %SystemBoolean, null\r\n    __Single_0:
    %SystemSingle, null\r\n    __Single_1: %SystemSingle, null\r\n    __Single_2:
    %SystemSingle, null\r\n    __Single_3: %SystemSingle, null\r\n    __instance_0:
    %VRCUdonUdonBehaviour, this\r\n    __eventName_0: %SystemString, null\r\n   
    target: %VRCUdonUdonBehaviour, this\r\n    eventName: %SystemString, null\r\n   
    duration: %SystemSingle, null\r\n    lastTimerTick: %SystemSingle, null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n   
    .export _update\r\n    \r\n    _update:\r\n    \r\n        PUSH, __Single_2\r\n       
    EXTERN, \"UnityEngineTime.__get_time__SystemSingle\"\r\n        PUSH, __Single_2\r\n       
    PUSH, lastTimerTick\r\n        PUSH, __Single_0\r\n        EXTERN, \"SystemSingle.__op_Subtraction__SystemSingle_SystemSingle__SystemSingle\"\r\n       
    PUSH, __Single_0\r\n        PUSH, duration\r\n        PUSH, __Boolean_0\r\n       
    EXTERN, \"SystemSingle.__op_GreaterThan__SystemSingle_SystemSingle__SystemBoolean\"\r\n       
    PUSH, __Boolean_0\r\n        JUMP_IF_FALSE, 0x000000B8\r\n        PUSH, target\r\n       
    PUSH, __instance_0\r\n        COPY\r\n        PUSH, eventName\r\n        PUSH,
    __eventName_0\r\n        COPY\r\n        PUSH, __instance_0\r\n        PUSH,
    __eventName_0\r\n        EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__SendCustomEvent__SystemString__SystemVoid\"\r\n       
    PUSH, lastTimerTick\r\n        EXTERN, \"UnityEngineTime.__get_time__SystemSingle\"\r\n       
    JUMP, 0x000000B8\r\n        JUMP, 0xFFFFFFFC\r\n    \r\n\r\n.code_end\r\n"
  assemblyError: 
  graphData:
    name: 
    description: 
    nodes:
    - fullName: Get_Variable
      uid: b94570b6-a35c-41ec-8c78-d389bff2005b
      position: {x: -20, y: -200}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0414f855-826a-45f7-b984-743b8a5e7969
    - fullName: Variable_VRCUdonCommonInterfacesIUdonEventReceiver
      uid: 0414f855-826a-45f7-b984-743b8a5e7969
      position: {x: -216, y: -636}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|target
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|True
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Get_Variable
      uid: 63d9d16f-3d74-495f-8798-cb0ec58ec5f9
      position: {x: -50, y: -120}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|950d8fc8-f389-4536-b64e-ba44ec3bb8bc
    - fullName: VRCUdonCommonInterfacesIUdonEventReceiver.__SendCustomEvent__SystemString__SystemVoid
      uid: 6b15af76-889f-4ef1-8b7b-cc3db3f7c01b
      position: {x: 190, y: -390}
      nodeUIDs:
      - b94570b6-a35c-41ec-8c78-d389bff2005b|0
      - 63d9d16f-3d74-495f-8798-cb0ec58ec5f9|0
      flowUIDs:
      - 22653f26-c638-48b3-b461-683ead018d44
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_SystemString
      uid: 950d8fc8-f389-4536-b64e-ba44ec3bb8bc
      position: {x: -408, y: -636}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|eventName
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|eventName
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|True
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_SystemSingle
      uid: b0a20621-7b43-48ca-b4a5-8fde43313cad
      position: {x: -24, y: -636}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|1
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|duration
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|True
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_SystemSingle
      uid: e48451be-3e33-4ff8-adfc-5d91d788585e
      position: {x: 168, y: -636}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|lastTimerTick
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: UnityEngineTime.__get_time__SystemSingle
      uid: 773dc93e-d8c2-4ec2-b7b7-fa369740cc24
      position: {x: -1010, y: -200}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    - fullName: SystemSingle.__op_Subtraction__SystemSingle_SystemSingle__SystemSingle
      uid: 2a647e29-cdc7-48f0-9c8e-e298a5d024e3
      position: {x: -790, y: -170}
      nodeUIDs:
      - 773dc93e-d8c2-4ec2-b7b7-fa369740cc24|0
      - 8eade7ce-8a6b-4fe0-b442-09f9ba08f37f|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Get_Variable
      uid: 8eade7ce-8a6b-4fe0-b442-09f9ba08f37f
      position: {x: -990, y: -110}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|e48451be-3e33-4ff8-adfc-5d91d788585e
    - fullName: SystemSingle.__op_GreaterThan__SystemSingle_SystemSingle__SystemBoolean
      uid: d195c264-42cc-4a3a-9591-3401808d6087
      position: {x: -390, y: -170}
      nodeUIDs:
      - 2a647e29-cdc7-48f0-9c8e-e298a5d024e3|0
      - ed4787ec-4140-4c50-90fe-65c882a35c5c|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Event_Update
      uid: 031711d5-e2e3-44d8-84a6-cb35622b67f6
      position: {x: -320, y: -440}
      nodeUIDs: []
      flowUIDs:
      - ccb96836-c6e8-459d-aea6-67e98bed77fe
      nodeValues: []
    - fullName: Get_Variable
      uid: ed4787ec-4140-4c50-90fe-65c882a35c5c
      position: {x: -570, y: -90}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|b0a20621-7b43-48ca-b4a5-8fde43313cad
    - fullName: Branch
      uid: ccb96836-c6e8-459d-aea6-67e98bed77fe
      position: {x: -160, y: -380}
      nodeUIDs:
      - d195c264-42cc-4a3a-9591-3401808d6087|0
      flowUIDs:
      - 6b15af76-889f-4ef1-8b7b-cc3db3f7c01b
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Set_Variable
      uid: 22653f26-c638-48b3-b461-683ead018d44
      position: {x: 800, y: -390}
      nodeUIDs:
      - 
      - 081024df-3b21-4821-a7cf-de52954d2a55|0
      flowUIDs:
      - 
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|e48451be-3e33-4ff8-adfc-5d91d788585e
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: UnityEngineTime.__get_time__SystemSingle
      uid: 081024df-3b21-4821-a7cf-de52954d2a55
      position: {x: 590, y: -270}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    updateOrder: 0
  graphElementData:
  - type: 2
    uid: 4093afd3-3b34-4458-bf51-c10d4dd55792
    jsonData: '{"uid":"4093afd3-3b34-4458-bf51-c10d4dd55792","layout":{"serializedVersion":"2","x":-1030.458984375,"y":-268.1321105957031,"width":872.0,"height":285.0},"containedElements":["ed4787ec-4140-4c50-90fe-65c882a35c5c","d195c264-42cc-4a3a-9591-3401808d6087","8eade7ce-8a6b-4fe0-b442-09f9ba08f37f","2a647e29-cdc7-48f0-9c8e-e298a5d024e3","773dc93e-d8c2-4ec2-b7b7-fa369740cc24"],"title":"Check
      whether enough time has passed since lastTimerTick","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 2
    uid: dffb3bb3-248f-47db-8a72-5e08c2b472b9
    jsonData: '{"uid":"dffb3bb3-248f-47db-8a72-5e08c2b472b9","layout":{"serializedVersion":"2","x":560.4934692382813,"y":-451.3446044921875,"width":458.0,"height":286.0},"containedElements":["22653f26-c638-48b3-b461-683ead018d44","081024df-3b21-4821-a7cf-de52954d2a55"],"title":"save
      NOW as new lastTimerTick","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 3
    uid: 3f84d049-9d9e-4197-94e1-21e603b32ad0
    jsonData: '{"uid":"3f84d049-9d9e-4197-94e1-21e603b32ad0","layout":{"serializedVersion":"2","x":-52.26012420654297,"y":-30.204896926879884,"width":431.6936340332031,"height":90.24354553222656},"title":"eventName
      and target are public variables so you can easily change it in the Inspector
      and reuse this graph for other events","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 3
    uid: f19b4aa1-afa5-4a05-8e3b-d1dbfd3b34e0
    jsonData: '{"uid":"f19b4aa1-afa5-4a05-8e3b-d1dbfd3b34e0","layout":{"serializedVersion":"2","x":-378.37744140625,"y":-490.85284423828127,"width":246.4500732421875,"height":40.0000114440918},"title":"Check
      timer every frame","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 5
    uid: cddf633d-d48d-4bda-954f-1d0dd8f691c2
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":13.0,"y":29.0,"width":235.0,"height":173.0}}'
  - type: 4
    uid: 46d8d053-df09-42aa-b83b-0d8d8bbabc43
    jsonData: '{"visible":false,"layout":{"serializedVersion":"2","x":10.0,"y":20.0,"width":0.0,"height":0.0}}'
  viewTransform:
    position: {x: 544.5098, y: 565.3605}
    scale: 0.5019608
  version: 1.0.0
  showAssembly: 1