%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: SyncPickupColor m_EditorClassIdentifier: serializedUdonProgramAsset: {fileID: 11400000, guid: 1785f01de383dbf47a2b1deb3ce1a40d, type: 2} udonAssembly: ".data_start\r\n\r\n .export fromColor\r\n .export targetRenderer\r\n \ .export toColor\r\n .export pickup\r\n .sync syncColor, smooth\r\n \r\n \ Boolean_0: %SystemBoolean, null\r\n Boolean_1: %SystemBoolean, null\r\n \ Boolean_2: %SystemBoolean, null\r\n obj_0: %UnityEngineGameObject, this\r\n \ instance_0: %VRCSDK3ComponentsVRCPickup, null\r\n instance_1: %VRCSDK3ComponentsVRCPickup, null\r\n a_0: %UnityEngineColor, null\r\n b_0: %UnityEngineColor, null\r\n \ t_0: %SystemSingle, null\r\n f_0: %SystemSingle, null\r\n instance_2: %UnityEngineMaterial, null\r\n name_0: %SystemString, null\r\n value_0: %UnityEngineColor, null\r\n instance_3: %UnityEngineRenderer, null\r\n fromColor: %UnityEngineColor, null\r\n targetRenderer: %UnityEngineRenderer, null\r\n \ toColor: %UnityEngineColor, null\r\n syncColor: %UnityEngineColor, null\r\n \ pickup: %VRCSDK3ComponentsVRCPickup, 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, pickup\r\n \ PUSH, instance_0\r\n COPY\r\n PUSH, instance_0\r\n PUSH, obj_0\r\n EXTERN, \"VRCSDK3ComponentsVRCPickup.__get_gameObject__UnityEngineGameObject\"\r\n \ PUSH, obj_0\r\n PUSH, Boolean_1\r\n EXTERN, \"VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean\"\r\n \ PUSH, pickup\r\n PUSH, instance_1\r\n COPY\r\n PUSH, instance_1\r\n PUSH, Boolean_2\r\n EXTERN, \"VRCSDK3ComponentsVRCPickup.__get_IsHeld__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, 0x0000F8\r\n PUSH, f_0\r\n \ EXTERN, \"UnityEngineTime.__get_time__SystemSingle\"\r\n PUSH, f_0\r\n PUSH, t_0\r\n EXTERN, \"UnityEngineMathf.__Sin__SystemSingle__SystemSingle\"\r\n \ PUSH, fromColor\r\n PUSH, toColor\r\n PUSH, t_0\r\n PUSH, syncColor\r\n EXTERN, \"UnityEngineColor.__LerpUnclamped__UnityEngineColor_UnityEngineColor_SystemSingle__UnityEngineColor\"\r\n \ JUMP, 0x0000F8\r\n PUSH, targetRenderer\r\n PUSH, instance_3\r\n \ COPY\r\n PUSH, instance_3\r\n PUSH, instance_2\r\n EXTERN, \"UnityEngineRenderer.__get_material__UnityEngineMaterial\"\r\n PUSH, instance_2\r\n \ PUSH, name_0\r\n PUSH, syncColor\r\n EXTERN, \"UnityEngineMaterial.__SetColor__SystemString_UnityEngineColor__SystemVoid\"\r\n \ JUMP, 0xFFFFFFFC\r\n \r\n\r\n.code_end\r\n" assemblyError: graphData: name: description: nodes: - fullName: Variable_UnityEngineColor uid: e250e86a-8cfa-4584-a585-3f34a8229559 position: {x: -1248, y: -624} nodeUIDs: - - - - - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|fromColor - 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_UnityEngineRenderer uid: 33b539d4-e63c-4414-9499-e1b955daac0b position: {x: -672, y: -624} nodeUIDs: - - - - - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|targetRenderer - 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: UnityEngineRenderer.__get_material__UnityEngineMaterial uid: aaf7110a-48c4-45e3-81f0-d3ec775a3411 position: {x: 440, y: -580} nodeUIDs: - 63e5cde2-b287-4914-92c8-70a07d8fa0d0|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - fullName: Get_Variable uid: 63e5cde2-b287-4914-92c8-70a07d8fa0d0 position: {x: 240, y: -580} nodeUIDs: - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|33b539d4-e63c-4414-9499-e1b955daac0b - fullName: UnityEngineMaterial.__SetColor__SystemString_UnityEngineColor__SystemVoid uid: 4af59101-ed93-4311-b31c-dcadd9b3230b position: {x: 710, y: -570} nodeUIDs: - aaf7110a-48c4-45e3-81f0-d3ec775a3411|0 - - bd8931dc-3bd3-40e9-a26e-6cf436b982e6|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|_Color - unityObjectValue: {fileID: 0} stringValue: - fullName: Get_Variable uid: bd8931dc-3bd3-40e9-a26e-6cf436b982e6 position: {x: 530, y: -440} nodeUIDs: - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|65de1c25-d232-4346-b7c7-c3d0e72f0104 - fullName: Event_Update uid: ba239461-c9e9-489b-8ceb-66e5c86fee61 position: {x: -530, y: -570} nodeUIDs: [] flowUIDs: - 25427eac-ecd5-499e-ae13-77a54a55ef50 nodeValues: [] - fullName: VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean uid: 7943e2ef-fbc4-4dbd-809a-0743cc54d934 position: {x: -1040, y: -380} nodeUIDs: - 61a32afe-0bff-4f8a-85e2-7ad6a1bb6e24|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - fullName: Branch uid: 23418b5f-1b21-478d-9481-e0eb7ec39442 position: {x: -240, y: -370} nodeUIDs: - f5d70bca-4430-4c0a-ad4d-8a1ce36a4881|0 flowUIDs: - 0be3d160-69f6-42ae-8fda-24ce52ffa288 - nodeValues: - unityObjectValue: {fileID: 0} stringValue: - fullName: UnityEngineColor.__LerpUnclamped__UnityEngineColor_UnityEngineColor_SystemSingle__UnityEngineColor uid: 0701e267-39fc-475f-9be4-7bd0bb4f139d position: {x: -350, y: -0} nodeUIDs: - 9c55e86b-602f-4a57-a3e0-a911a507717e|0 - bbf728e5-3ecf-4c1d-aa6b-d92283368124|0 - db5ebdae-e505-4cca-93d3-d134b1844c41|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: - fullName: Variable_UnityEngineColor uid: ad1686e1-53e2-41bb-8b2c-3a6723005bfc position: {x: -1056, y: -624} nodeUIDs: - - - - - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|toColor - 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_UnityEngineColor uid: 65de1c25-d232-4346-b7c7-c3d0e72f0104 position: {x: -864, y: -624} nodeUIDs: - - - - - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|syncColor - 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|True - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|smooth - fullName: Get_Variable uid: 9c55e86b-602f-4a57-a3e0-a911a507717e position: {x: -540, y: -60} nodeUIDs: - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|e250e86a-8cfa-4584-a585-3f34a8229559 - fullName: Get_Variable uid: bbf728e5-3ecf-4c1d-aa6b-d92283368124 position: {x: -530, y: 20} nodeUIDs: - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|ad1686e1-53e2-41bb-8b2c-3a6723005bfc - fullName: UnityEngineTime.__get_time__SystemSingle uid: abe3182c-9d90-43bb-bc7a-392be5068e7f position: {x: -740, y: 110} nodeUIDs: [] flowUIDs: [] nodeValues: [] - fullName: Set_Variable uid: 0be3d160-69f6-42ae-8fda-24ce52ffa288 position: {x: -40, y: -370} nodeUIDs: - - 0701e267-39fc-475f-9be4-7bd0bb4f139d|0 flowUIDs: - nodeValues: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|65de1c25-d232-4346-b7c7-c3d0e72f0104 - unityObjectValue: {fileID: 0} stringValue: - fullName: UnityEngineMathf.__Sin__SystemSingle__SystemSingle uid: db5ebdae-e505-4cca-93d3-d134b1844c41 position: {x: -540, y: 110} nodeUIDs: - abe3182c-9d90-43bb-bc7a-392be5068e7f|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - fullName: Block uid: 25427eac-ecd5-499e-ae13-77a54a55ef50 position: {x: -370, y: -570} nodeUIDs: [] flowUIDs: - 23418b5f-1b21-478d-9481-e0eb7ec39442 - 4af59101-ed93-4311-b31c-dcadd9b3230b nodeValues: [] - fullName: SystemBoolean.__op_ConditionalAnd__SystemBoolean_SystemBoolean__SystemBoolean uid: f5d70bca-4430-4c0a-ad4d-8a1ce36a4881 position: {x: -790, y: -340} nodeUIDs: - 7943e2ef-fbc4-4dbd-809a-0743cc54d934|0 - f36cfda1-def5-42f5-83d2-5f43e4ed3ed4|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: - fullName: VRCSDK3ComponentsVRCPickup.__get_IsHeld__SystemBoolean uid: f36cfda1-def5-42f5-83d2-5f43e4ed3ed4 position: {x: -1040, y: -270} nodeUIDs: - 621e59e0-6aec-42ca-b74b-66a97d020f3a|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - fullName: Variable_VRCSDK3ComponentsVRCPickup uid: 60251231-64b1-42e1-a0cd-664ceed1e498 position: {x: -1464, y: -624} nodeUIDs: - - - - - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|pickup - 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: VRCSDK3ComponentsVRCPickup.__get_gameObject__UnityEngineGameObject uid: 61a32afe-0bff-4f8a-85e2-7ad6a1bb6e24 position: {x: -1310, y: -350} nodeUIDs: - 621e59e0-6aec-42ca-b74b-66a97d020f3a|0 flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: - fullName: Get_Variable uid: 621e59e0-6aec-42ca-b74b-66a97d020f3a position: {x: -1480, y: -270} nodeUIDs: - flowUIDs: [] nodeValues: - unityObjectValue: {fileID: 0} stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|60251231-64b1-42e1-a0cd-664ceed1e498 graphElementData: - type: 2 uid: f3743949-b448-4f18-a842-6ebb1c181256 jsonData: '{"uid":"f3743949-b448-4f18-a842-6ebb1c181256","layout":{"serializedVersion":"2","x":216.86280822753907,"y":-649.1502685546875,"width":762.0,"height":318.0},"containedElements":["aaf7110a-48c4-45e3-81f0-d3ec775a3411","63e5cde2-b287-4914-92c8-70a07d8fa0d0","bd8931dc-3bd3-40e9-a26e-6cf436b982e6","4af59101-ed93-4311-b31c-dcadd9b3230b"],"title":"Update the Material color to SyncColor","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' - type: 2 uid: defafb15-2d61-46b6-93c8-f2d07fb43808 jsonData: '{"uid":"defafb15-2d61-46b6-93c8-f2d07fb43808","layout":{"serializedVersion":"2","x":-1503.709716796875,"y":-441.51776123046877,"width":964.0,"height":279.0},"containedElements":["7943e2ef-fbc4-4dbd-809a-0743cc54d934","f36cfda1-def5-42f5-83d2-5f43e4ed3ed4","61a32afe-0bff-4f8a-85e2-7ad6a1bb6e24","621e59e0-6aec-42ca-b74b-66a97d020f3a","f5d70bca-4430-4c0a-ad4d-8a1ce36a4881"],"title":"Check that this player is the Owner of the Object and they''re holding it","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' - type: 2 uid: ba8e7f2d-f832-4994-8960-a1053ae950f3 jsonData: '{"uid":"ba8e7f2d-f832-4994-8960-a1053ae950f3","layout":{"serializedVersion":"2","x":-768.1007080078125,"y":-125.66925048828125,"width":690.0,"height":343.0},"containedElements":["db5ebdae-e505-4cca-93d3-d134b1844c41","abe3182c-9d90-43bb-bc7a-392be5068e7f","bbf728e5-3ecf-4c1d-aa6b-d92283368124","9c55e86b-602f-4a57-a3e0-a911a507717e","0701e267-39fc-475f-9be4-7bd0bb4f139d"],"title":"Change between ''fromColor'' and ''toColor'' in a smooth manner","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}' - type: 3 uid: 95308676-c75a-468a-8072-b19c192bb25f jsonData: '{"uid":"95308676-c75a-468a-8072-b19c192bb25f","layout":{"serializedVersion":"2","x":-577.5718994140625,"y":-678.1742553710938,"width":346.5000305175781,"height":92.90003204345703},"title":"Block will run things in order, so we Set the new value of syncColor before we update the material''s color","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":214.0,"height":204.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: 646.4359, y: 555.14105} scale: 0.41025642 version: 1.0.0 showAssembly: 0