%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: ToggleSync
  m_EditorClassIdentifier: 
  serializedUdonProgramAsset: {fileID: 11400000, guid: bc814a87345a0884f804ecda59662d7a,
    type: 2}
  udonAssembly: ".data_start\r\n\r\n    .export uiToggle\r\n    .sync toggleValue,
    none\r\n    \r\n    instance_0: %UnityEngineUIToggle, null\r\n    value_0: %SystemBoolean,
    null\r\n    player_0: %VRCSDKBaseVRCPlayerApi, null\r\n    obj_0: %UnityEngineGameObject,
    this\r\n    instance_1: %UnityEngineUIToggle, null\r\n    instance_2: %VRCUdonUdonBehaviour,
    this\r\n    Boolean_0: %SystemBoolean, null\r\n    uiToggle: %UnityEngineUIToggle,
    null\r\n    toggleValue: %SystemBoolean, null\r\n    __returnValue: %SystemObject,
    null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n    .export _onDeserialization\r\n
    \   \r\n    _onDeserialization:\r\n    \r\n        PUSH, uiToggle\r\n        PUSH,
    instance_0\r\n        COPY\r\n        PUSH, instance_0\r\n        PUSH, toggleValue\r\n
    \       EXTERN, \"UnityEngineUIToggle.__set_isOn__SystemBoolean__SystemVoid\"\r\n
    \       JUMP, 0xFFFFFFFC\r\n    \r\n    .export OnValueChanged\r\n    \r\n    OnValueChanged:\r\n
    \   \r\n        PUSH, player_0\r\n        EXTERN, \"VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi\"\r\n
    \       PUSH, player_0\r\n        PUSH, obj_0\r\n        EXTERN, \"VRCSDKBaseNetworking.__SetOwner__VRCSDKBaseVRCPlayerApi_UnityEngineGameObject__SystemVoid\"\r\n
    \       PUSH, uiToggle\r\n        PUSH, instance_1\r\n        COPY\r\n        PUSH,
    instance_1\r\n        PUSH, toggleValue\r\n        EXTERN, \"UnityEngineUIToggle.__get_isOn__SystemBoolean\"\r\n
    \       PUSH, toggleValue\r\n        PUSH, toggleValue\r\n        COPY\r\n        PUSH,
    instance_2\r\n        EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid\"\r\n
    \       JUMP, 0xFFFFFFFC\r\n    \r\n    .export _onOwnershipRequest\r\n    \r\n
    \   _onOwnershipRequest:\r\n    \r\n        PUSH, Boolean_0\r\n        PUSH, __returnValue\r\n
    \       COPY\r\n        JUMP, 0xFFFFFFFC\r\n    \r\n\r\n.code_end\r\n"
  assemblyError: 
  graphData:
    name: 
    description: 
    nodes:
    - fullName: Variable_UnityEngineUIToggle
      uid: be512329-18e8-4ac0-acfe-35a4c18e11c4
      position: {x: -216, y: -840}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|uiToggle
      - 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_SystemBoolean
      uid: a48993e1-e5db-47cf-87f9-4c49228708a6
      position: {x: -408, y: -840}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - 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|toggleValue
      - 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|none
    - fullName: Get_Variable
      uid: 0cb40eff-4fec-4eed-ba1d-89008fe8cf27
      position: {x: -355, y: 120}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|be512329-18e8-4ac0-acfe-35a4c18e11c4
    - fullName: Set_Variable
      uid: 89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c
      position: {x: 60, y: -260}
      nodeUIDs:
      - 
      - a5df33d8-196b-4676-a6e2-17e738e85255|0
      flowUIDs:
      - 2047edc3-fc6e-4fcc-bb7c-764d203daf10
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|a48993e1-e5db-47cf-87f9-4c49228708a6
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: UnityEngineUIToggle.__get_isOn__SystemBoolean
      uid: a5df33d8-196b-4676-a6e2-17e738e85255
      position: {x: -175, y: -190}
      nodeUIDs:
      - 0cb40eff-4fec-4eed-ba1d-89008fe8cf27|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: UnityEngineUIToggle.__set_isOn__SystemBoolean__SystemVoid
      uid: f59e1ddd-56f4-4e29-8969-474e698482c6
      position: {x: 255, y: 95}
      nodeUIDs:
      - 0cb40eff-4fec-4eed-ba1d-89008fe8cf27|0
      - 59246b09-fc5a-4ab2-915a-6d0c86a5d1e3|0
      flowUIDs:
      - 
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Get_Variable
      uid: 59246b09-fc5a-4ab2-915a-6d0c86a5d1e3
      position: {x: -25, y: 215}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|a48993e1-e5db-47cf-87f9-4c49228708a6
    - fullName: Event_OnDeserialization
      uid: e55ef00f-13c2-4af9-b0a9-fc6a43aa4192
      position: {x: -70, y: 40}
      nodeUIDs: []
      flowUIDs:
      - f59e1ddd-56f4-4e29-8969-474e698482c6
      nodeValues: []
    - fullName: Event_Custom
      uid: 0e08b1cf-28e9-4023-9916-2acd91d7112f
      position: {x: -605, y: -290}
      nodeUIDs:
      - 
      flowUIDs:
      - e7fb03eb-1a6a-4d36-a949-21152420d47f
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|OnValueChanged
    - fullName: VRCSDKBaseNetworking.__SetOwner__VRCSDKBaseVRCPlayerApi_UnityEngineGameObject__SystemVoid
      uid: e7fb03eb-1a6a-4d36-a949-21152420d47f
      position: {x: -395, y: -260}
      nodeUIDs:
      - 454bc07a-b74b-40d6-9f1d-e3eeff692150|0
      - 
      flowUIDs:
      - 89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi
      uid: 454bc07a-b74b-40d6-9f1d-e3eeff692150
      position: {x: -565, y: -200}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    - fullName: VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid
      uid: 2047edc3-fc6e-4fcc-bb7c-764d203daf10
      position: {x: 240, y: -260}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Event_OnOwnershipRequest
      uid: a44fa956-b690-46b3-8ae8-db7f36cbe32f
      position: {x: 715, y: -160}
      nodeUIDs: []
      flowUIDs:
      - 1b0a04ba-e48c-496f-bd2d-8d6a54b226a8
      nodeValues: []
    - fullName: Set_ReturnValue
      uid: 1b0a04ba-e48c-496f-bd2d-8d6a54b226a8
      position: {x: 955, y: -110}
      nodeUIDs:
      - 
      - 6a13432f-3330-400c-9de7-46692fa4d230|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|cd9c3fce-43e2-4b4f-adc8-46e56163a3d2
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_SystemObject
      uid: cd9c3fce-43e2-4b4f-adc8-46e56163a3d2
      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|__returnValue
      - 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: Const_SystemBoolean
      uid: 6a13432f-3330-400c-9de7-46692fa4d230
      position: {x: 820, y: -20}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|True
    updateOrder: 0
  graphElementData:
  - type: 2
    uid: fc670e27-765f-47db-ade6-ea3255fa6e6d
    jsonData: '{"uid":"fc670e27-765f-47db-ade6-ea3255fa6e6d","layout":{"serializedVersion":"2","x":690.0,"y":-225.0,"width":451.0,"height":312.0},"containedElements":["6a13432f-3330-400c-9de7-46692fa4d230","a44fa956-b690-46b3-8ae8-db7f36cbe32f","1b0a04ba-e48c-496f-bd2d-8d6a54b226a8"],"title":"Approve
      Ownership Transfers","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 3
    uid: d2a2d725-91cf-4726-8fd5-d3e5d79eb8a8
    jsonData: '{"uid":"d2a2d725-91cf-4726-8fd5-d3e5d79eb8a8","layout":{"serializedVersion":"2","x":80.0,"y":-345.0,"width":347.0,"height":68.0},"title":"The
      Owner of this Object will send their value to everyone else","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 3
    uid: c54094df-6418-4c2d-97d1-026af1b9d9a2
    jsonData: '{"uid":"c54094df-6418-4c2d-97d1-026af1b9d9a2","layout":{"serializedVersion":"2","x":-165.75,"y":-31.25,"width":320.0,"height":62.0},"title":"Deserialization
      happens for everyone who is not the Owner","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 3
    uid: b25d53b9-82c3-4907-856c-0762f3f89dbf
    jsonData: '{"uid":"b25d53b9-82c3-4907-856c-0762f3f89dbf","layout":{"serializedVersion":"2","x":210.0,"y":-130.0,"width":326.0,"height":102.0},"title":"We
      don''t wire this up to Toggle.SetIsOn below because Unity UI updates this directly.","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 5
    uid: c386a6db-9e4c-4a8c-9ad8-9777e0978956
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":40.0,"y":76.0,"width":299.0,"height":306.0}}'
  - type: 4
    uid: 375ae574-056c-4f5d-a57b-0c9c2c87c61a
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":20.0,"width":0.0,"height":0.0}}'
  viewTransform:
    position: {x: 353.6271, y: 508.65216}
    scale: 0.8695652
  version: 1.0.0
  showAssembly: 0
