%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: d3554e790fe91be48ab0c142817bab17,
    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    instance_1: %UnityEngineUIToggle, null\r\n    uiToggle: %UnityEngineUIToggle,
    null\r\n    toggleValue: %SystemBoolean, 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, 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        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: 
    - fullName: Get_Variable
      uid: 0cb40eff-4fec-4eed-ba1d-89008fe8cf27
      position: {x: -353, y: 121}
      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: -261}
      nodeUIDs:
      - 
      - a5df33d8-196b-4676-a6e2-17e738e85255|0
      flowUIDs:
      - 
      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: 257, y: 96}
      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: -24, y: 213}
      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: -69, y: 39}
      nodeUIDs: []
      flowUIDs:
      - f59e1ddd-56f4-4e29-8969-474e698482c6
      nodeValues: []
    - fullName: Event_Custom
      uid: 0e08b1cf-28e9-4023-9916-2acd91d7112f
      position: {x: -475, y: -262}
      nodeUIDs:
      - 
      flowUIDs:
      - 89f2ad6b-3973-4adf-bcf7-1085cbbc9b8c
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|OnValueChanged
  graphElementData:
  - type: 3
    uid: d2a2d725-91cf-4726-8fd5-d3e5d79eb8a8
    jsonData: '{"uid":"d2a2d725-91cf-4726-8fd5-d3e5d79eb8a8","layout":{"serializedVersion":"2","x":-31.5,"y":-336.5,"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":261.5,"y":-195.25,"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: 3
    uid: 9567e148-41d4-4e53-842d-76a9eee692b5
    jsonData: '{"uid":"9567e148-41d4-4e53-842d-76a9eee692b5","layout":{"serializedVersion":"2","x":-822.25,"y":-273.25,"width":336.0,"height":104.0},"title":"This
      event can have any name we want as long as we make it the same on the UI item
      that triggers it.","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  viewTransform:
    position: {x: 0, y: 0}
    scale: 1
  version: 1.0.0
  showAssembly: 0
