summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/VRChat Examples/UdonProgramSources/ObjectPool.asset
blob: 3b7ddb3927e34a590f754656612d432c8df6e067 (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
277
278
279
280
281
282
283
284
285
286
287
288
%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: ObjectPool
  m_EditorClassIdentifier: 
  serializedUdonProgramAsset: {fileID: 11400000, guid: 04e60c488c8422146b705c298d02baf4,
    type: 2}
  udonAssembly: ".data_start\r\n\r\n    .export pool\r\n    .export spawnRate\r\n   
    \r\n    __Boolean_0: %SystemBoolean, null\r\n    __Boolean_1: %SystemBoolean,
    null\r\n    __Boolean_2: %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    __obj_0: %UnityEngineGameObject,
    this\r\n    __instance_0: %VRCSDK3ComponentsVRCObjectPool, null\r\n    __GameObject_0:
    %UnityEngineGameObject, this\r\n    lastSpawnTime: %SystemSingle, null\r\n   
    pool: %VRCSDK3ComponentsVRCObjectPool, null\r\n    spawnRate: %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_realtimeSinceStartup__SystemSingle\"\r\n       
    PUSH, __Single_2\r\n        PUSH, lastSpawnTime\r\n        PUSH, __Single_0\r\n       
    EXTERN, \"SystemSingle.__op_Subtraction__SystemSingle_SystemSingle__SystemSingle\"\r\n       
    PUSH, __Single_0\r\n        PUSH, spawnRate\r\n        PUSH, __Boolean_1\r\n       
    EXTERN, \"SystemSingle.__op_GreaterThan__SystemSingle_SystemSingle__SystemBoolean\"\r\n       
    PUSH, __obj_0\r\n        PUSH, __Boolean_2\r\n        EXTERN, \"VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean\"\r\n       
    PUSH, __Boolean_1\r\n        PUSH, __Boolean_2\r\n        PUSH, __Boolean_0\r\n       
    EXTERN, \"SystemBoolean.__op_ConditionalAnd__SystemBoolean_SystemBoolean__SystemBoolean\"\r\n       
    PUSH, __Boolean_0\r\n        JUMP_IF_FALSE, 0x000000F4\r\n        PUSH, __Single_2\r\n       
    PUSH, lastSpawnTime\r\n        COPY\r\n        PUSH, __Single_2\r\n        PUSH,
    lastSpawnTime\r\n        COPY\r\n        PUSH, pool\r\n        PUSH, __instance_0\r\n       
    COPY\r\n        PUSH, __instance_0\r\n        PUSH, __GameObject_0\r\n       
    EXTERN, \"VRCSDK3ComponentsVRCObjectPool.__TryToSpawn__UnityEngineGameObject\"\r\n       
    JUMP, 0x000000F4\r\n        JUMP, 0xFFFFFFFC\r\n    \r\n    .export _start\r\n   
    \r\n    _start:\r\n    \r\n        PUSH, lastSpawnTime\r\n        EXTERN, \"SystemSingle.__get_MinValue__SystemSingle\"\r\n       
    JUMP, 0xFFFFFFFC\r\n    \r\n\r\n.code_end\r\n"
  assemblyError: 
  graphData:
    name: 
    description: 
    nodes:
    - fullName: Event_Update
      uid: 24b817b6-8301-492f-9a48-4abd123aa915
      position: {x: 1480, y: 430}
      nodeUIDs: []
      flowUIDs:
      - 422a5fe1-6bac-4b3a-a394-b3c5ec51d2fe
      nodeValues: []
    - fullName: Variable_SystemSingle
      uid: 5778ffa2-ab37-4edb-ac5b-ecb3d9bf1f59
      position: {x: 0, y: 0}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|lastSpawnTime
      - 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: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
    - fullName: Event_Start
      uid: b47abf82-7d5d-447b-abc5-7f1510fd7e1e
      position: {x: 980, y: 150}
      nodeUIDs: []
      flowUIDs:
      - 9d30deab-bbe4-41f1-90fb-a383383a113d
      nodeValues: []
    - fullName: Set_Variable
      uid: 9d30deab-bbe4-41f1-90fb-a383383a113d
      position: {x: 1120, y: 160}
      nodeUIDs:
      - 
      - 88fdf5d7-5fe9-445e-8955-31fd469f029d|0
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|5778ffa2-ab37-4edb-ac5b-ecb3d9bf1f59
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
    - fullName: SystemSingle.__get_MinValue__SystemSingle
      uid: 88fdf5d7-5fe9-445e-8955-31fd469f029d
      position: {x: 930, y: 240}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    - fullName: Branch
      uid: 422a5fe1-6bac-4b3a-a394-b3c5ec51d2fe
      position: {x: 1730, y: 430}
      nodeUIDs:
      - 75d0a2e4-7387-45c3-a9fc-1680922d54ed|0
      flowUIDs:
      - e789a3f2-0d84-44a4-8d15-a73850543686
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
    - fullName: SystemSingle.__op_Subtraction__SystemSingle_SystemSingle__SystemSingle
      uid: 2ed71826-d54b-48cd-a70f-751a348afa8a
      position: {x: 1180, y: 570}
      nodeUIDs:
      - 1aa4ffcc-26fe-44ac-b179-8b746a95e6e0|0
      - 9fc49f6f-47f1-4a65-aa24-0e10505e5407|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
      - unityObjectValue: {fileID: 0}
        stringValue: System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
    - fullName: UnityEngineTime.__get_realtimeSinceStartup__SystemSingle
      uid: 1aa4ffcc-26fe-44ac-b179-8b746a95e6e0
      position: {x: 920, y: 480}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    - fullName: Get_Variable
      uid: 9fc49f6f-47f1-4a65-aa24-0e10505e5407
      position: {x: 980, y: 660}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|5778ffa2-ab37-4edb-ac5b-ecb3d9bf1f59
    - fullName: SystemSingle.__op_GreaterThan__SystemSingle_SystemSingle__SystemBoolean
      uid: c1d1d85c-57b8-4a59-8d53-1a277402f5dc
      position: {x: 1360, y: 610}
      nodeUIDs:
      - 2ed71826-d54b-48cd-a70f-751a348afa8a|0
      - b87260d8-cc14-41bb-8e92-5d2e8683f905|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
      - unityObjectValue: {fileID: 0}
        stringValue: System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|5
    - fullName: Set_Variable
      uid: e789a3f2-0d84-44a4-8d15-a73850543686
      position: {x: 1920, y: 430}
      nodeUIDs:
      - 
      - 1aa4ffcc-26fe-44ac-b179-8b746a95e6e0|0
      - 
      flowUIDs:
      - 22ca9a76-079d-4879-b4ac-18a7caf4d54a
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|5778ffa2-ab37-4edb-ac5b-ecb3d9bf1f59
      - unityObjectValue: {fileID: 0}
        stringValue: System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|1
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral,
          PublicKeyToken=b77a5c561934e089|False
    - fullName: VRCSDK3ComponentsVRCObjectPool.__TryToSpawn__UnityEngineGameObject
      uid: 22ca9a76-079d-4879-b4ac-18a7caf4d54a
      position: {x: 2100, y: 480}
      nodeUIDs:
      - 4576ed72-075c-4491-bf23-a2c133902f6e|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_VRCSDK3ComponentsVRCObjectPool
      uid: 81a98a1c-bf8d-4de8-b874-8c701e517574
      position: {x: 0, y: 0}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|pool
      - 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: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
    - fullName: Get_Variable
      uid: 4576ed72-075c-4491-bf23-a2c133902f6e
      position: {x: 1900, y: 580}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|81a98a1c-bf8d-4de8-b874-8c701e517574
    - fullName: VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean
      uid: 4f80683d-5a62-4b57-a9f9-93e4636ea7db
      position: {x: 1340, y: 780}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: SystemBoolean.__op_ConditionalAnd__SystemBoolean_SystemBoolean__SystemBoolean
      uid: 75d0a2e4-7387-45c3-a9fc-1680922d54ed
      position: {x: 1530, y: 660}
      nodeUIDs:
      - c1d1d85c-57b8-4a59-8d53-1a277402f5dc|0
      - 4f80683d-5a62-4b57-a9f9-93e4636ea7db|0
      flowUIDs: []
      nodeValues:
      - 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
    - fullName: Variable_SystemSingle
      uid: c9b2d9ba-e706-42ea-842b-12bbd5e03a7b
      position: {x: 0, y: 0}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|5
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|spawnRate
      - 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: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|none
    - fullName: Get_Variable
      uid: b87260d8-cc14-41bb-8e92-5d2e8683f905
      position: {x: 1180, y: 680}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|c9b2d9ba-e706-42ea-842b-12bbd5e03a7b
    updateOrder: 0
  graphElementData:
  - type: 2
    uid: 9b49bb5a-ce15-42fe-8dc5-f69ab666675c
    jsonData: '{"uid":"9b49bb5a-ce15-42fe-8dc5-f69ab666675c","layout":{"serializedVersion":"2","x":905.0,"y":85.0,"width":408.0,"height":262.0},"containedElements":["9d30deab-bbe4-41f1-90fb-a383383a113d","88fdf5d7-5fe9-445e-8955-31fd469f029d","b47abf82-7d5d-447b-abc5-7f1510fd7e1e"],"title":"OnStart","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 2
    uid: 71aa4af0-fd70-4157-aa61-bf07111cf498
    jsonData: '{"uid":"71aa4af0-fd70-4157-aa61-bf07111cf498","layout":{"serializedVersion":"2","x":895.0,"y":365.0,"width":1022.0,"height":576.0},"containedElements":["22ca9a76-079d-4879-b4ac-18a7caf4d54a","e789a3f2-0d84-44a4-8d15-a73850543686","c1d1d85c-57b8-4a59-8d53-1a277402f5dc","9fc49f6f-47f1-4a65-aa24-0e10505e5407","1aa4ffcc-26fe-44ac-b179-8b746a95e6e0","2ed71826-d54b-48cd-a70f-751a348afa8a","422a5fe1-6bac-4b3a-a394-b3c5ec51d2fe","24b817b6-8301-492f-9a48-4abd123aa915","4576ed72-075c-4491-bf23-a2c133902f6e","75d0a2e4-7387-45c3-a9fc-1680922d54ed","4f80683d-5a62-4b57-a9f9-93e4636ea7db","1669540b-a8a1-4611-98be-762e46a42177","0c9c36a3-bb09-47ba-a6de-92a5e96e3ffc","b4993449-a5af-441c-bad6-cab336cede72","641c6bcb-7b7a-4903-87db-11addc77c958","7d55d95e-5836-4c7b-b8e3-9020dcbafa28","d01fc747-5c75-4271-a0da-197b946d584b","b22cc5c0-1270-4f12-8505-6ef0dc2ca1d1","f876e28a-f12d-4c2d-9832-d708a9853cbf","b27c588b-6b7b-45f7-a8c3-76ad5dab6e27","ce301c88-48e8-450a-b39c-918ba62560ef","7f7c3b66-25a7-4e32-913a-0365a5631e13","bacd2e0c-7e48-4466-b261-c0300303ed9d","b87260d8-cc14-41bb-8e92-5d2e8683f905"],"title":"Spawn
      Object","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 5
    uid: f100d3c6-b06b-49d6-aa0f-37526d0ac82e
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":130.0,"width":211.0,"height":262.0}}'
  - type: 4
    uid: ace03e48-71a1-473b-a1e7-33821ff7642c
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":20.0,"width":0.0,"height":0.0}}'
  viewTransform:
    position: {x: -470.8941, y: 85.42198}
    scale: 0.7561437
  version: 1.0.0
  showAssembly: 0