%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: ButtonSyncBecomeOwner
  m_EditorClassIdentifier: 
  serializedUdonProgramAsset: {fileID: 11400000, guid: a71e5d005491e5f40a54df3bf8294ab0,
    type: 2}
  udonAssembly: ".data_start\r\n\r\n    .export uiText\r\n    .sync clickCount, none\r\n
    \   \r\n    player_0: %VRCSDKBaseVRCPlayerApi, null\r\n    obj_0: %UnityEngineGameObject,
    this\r\n    GameObject_0: %UnityEngineGameObject, this\r\n    Boolean_0: %SystemBoolean,
    null\r\n    obj_1: %UnityEngineGameObject, this\r\n    GameObject_1: %UnityEngineGameObject,
    this\r\n    instance_0: %UnityEngineUIText, null\r\n    value_0: %SystemString,
    null\r\n    instance_1: %SystemInt32, null\r\n    Int32_0: %SystemInt32, null\r\n
    \   Int32_1: %SystemInt32, null\r\n    instance_2: %VRCUdonUdonBehaviour, this\r\n
    \   instance_3: %UnityEngineUIText, null\r\n    value_1: %SystemString, null\r\n
    \   instance_4: %SystemInt32, null\r\n    Boolean_1: %SystemBoolean, null\r\n
    \   uiText: %UnityEngineUIText, null\r\n    clickCount: %SystemInt32, null\r\n
    \   __returnValue: %SystemObject, null\r\n\r\n.data_end\r\n\r\n.code_start\r\n\r\n
    \   .export OnClick\r\n    \r\n    OnClick:\r\n    \r\n        PUSH, player_0\r\n
    \       EXTERN, \"VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi\"\r\n
    \       PUSH, GameObject_0\r\n        PUSH, obj_0\r\n        COPY\r\n        PUSH,
    player_0\r\n        PUSH, obj_0\r\n        EXTERN, \"VRCSDKBaseNetworking.__SetOwner__VRCSDKBaseVRCPlayerApi_UnityEngineGameObject__SystemVoid\"\r\n
    \       PUSH, GameObject_1\r\n        PUSH, obj_1\r\n        COPY\r\n        PUSH,
    obj_1\r\n        PUSH, Boolean_0\r\n        EXTERN, \"VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean\"\r\n
    \       PUSH, Boolean_0\r\n        JUMP_IF_FALSE, 0x0000011C\r\n        PUSH,
    clickCount\r\n        PUSH, Int32_1\r\n        PUSH, clickCount\r\n        EXTERN,
    \"SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32\"\r\n        PUSH,
    clickCount\r\n        PUSH, clickCount\r\n        COPY\r\n        PUSH, uiText\r\n
    \       PUSH, instance_0\r\n        COPY\r\n        PUSH, clickCount\r\n        PUSH,
    instance_1\r\n        COPY\r\n        PUSH, clickCount\r\n        PUSH, value_0\r\n
    \       EXTERN, \"SystemInt32.__ToString__SystemString\"\r\n        PUSH, instance_0\r\n
    \       PUSH, value_0\r\n        EXTERN, \"UnityEngineUIText.__set_text__SystemString__SystemVoid\"\r\n
    \       PUSH, instance_2\r\n        EXTERN, \"VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid\"\r\n
    \       JUMP, 0x0000011C\r\n        JUMP, 0xFFFFFFFC\r\n    \r\n    .export _onDeserialization\r\n
    \   \r\n    _onDeserialization:\r\n    \r\n        PUSH, uiText\r\n        PUSH,
    instance_3\r\n        COPY\r\n        PUSH, clickCount\r\n        PUSH, value_1\r\n
    \       EXTERN, \"SystemInt32.__ToString__SystemString\"\r\n        PUSH, instance_3\r\n
    \       PUSH, value_1\r\n        EXTERN, \"UnityEngineUIText.__set_text__SystemString__SystemVoid\"\r\n
    \       JUMP, 0xFFFFFFFC\r\n    \r\n    .export _onOwnershipRequest\r\n    \r\n
    \   _onOwnershipRequest:\r\n    \r\n        PUSH, Boolean_1\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_UnityEngineUIText
      uid: 12c79c8c-4c5b-47f4-97a5-6eff05f02319
      position: {x: -480.43594, y: -1210.8345}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|uiText
      - 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: 89f4d63f-92c7-4170-bbb8-b2e6ae9b495c
      position: {x: 255, y: -75}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|12c79c8c-4c5b-47f4-97a5-6eff05f02319
    - fullName: UnityEngineUIText.__set_text__SystemString__SystemVoid
      uid: 4b420ac5-0590-4ed1-b0c0-6c7136ddef8b
      position: {x: 420, y: 75}
      nodeUIDs:
      - 89f4d63f-92c7-4170-bbb8-b2e6ae9b495c|0
      - 6db53f3c-a646-4f97-afc4-74fe64186239|0
      flowUIDs:
      - 
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Set_Variable
      uid: cdd58849-782a-4df1-bb77-4faa31abf7dc
      position: {x: 60, y: -395}
      nodeUIDs:
      - 
      - 18427a69-ec81-412b-b6ea-b13cfed20d19|0
      flowUIDs:
      - a7c177b9-b2f2-481f-9c5b-5a17ea3728d7
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|108dca79-fc50-4974-be67-98b51b901956
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_SystemInt32
      uid: 108dca79-fc50-4974-be67-98b51b901956
      position: {x: 366.23846, y: -689.9112}
      nodeUIDs:
      - 
      - 
      - 
      - 
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|clickCount
      - 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: SystemInt32.__op_Addition__SystemInt32_SystemInt32__SystemInt32
      uid: 18427a69-ec81-412b-b6ea-b13cfed20d19
      position: {x: -125, y: -200}
      nodeUIDs:
      - 15668f0e-6cf0-486a-be22-9674854daf11|0
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|1
    - fullName: Event_Custom
      uid: 852f1237-e9f1-4cb5-bda2-fb88201d3829
      position: {x: -560, y: -765}
      nodeUIDs:
      - 
      flowUIDs:
      - 40dc9196-2fe8-4e87-a053-ec90c17ca405
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|OnClick
    - fullName: Branch
      uid: 319f2ce6-c6ec-43c5-b879-fa9c8d104961
      position: {x: -130, y: -395}
      nodeUIDs:
      - 63db96ca-ddb7-4ca4-b382-c08cd2172338
      flowUIDs:
      - cdd58849-782a-4df1-bb77-4faa31abf7dc
      - 
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|False
    - fullName: VRCSDKBaseNetworking.__IsOwner__UnityEngineGameObject__SystemBoolean
      uid: 63db96ca-ddb7-4ca4-b382-c08cd2172338
      position: {x: -330, y: -375}
      nodeUIDs:
      - 365f49b5-c24c-494d-bebe-0c80e2d225a2|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: SystemInt32.__ToString__SystemString
      uid: 6db53f3c-a646-4f97-afc4-74fe64186239
      position: {x: 215, y: 190}
      nodeUIDs:
      - 15668f0e-6cf0-486a-be22-9674854daf11|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
    - fullName: UnityEngineUIText.__set_text__SystemString__SystemVoid
      uid: a7c177b9-b2f2-481f-9c5b-5a17ea3728d7
      position: {x: 425, y: -385}
      nodeUIDs:
      - 89f4d63f-92c7-4170-bbb8-b2e6ae9b495c|0
      - 3e7751f7-bab9-46ab-90f8-6e740a487e65|0
      flowUIDs:
      - 76acdc6d-5ee9-4335-9f19-0b89a232057b
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Get_Variable
      uid: 15668f0e-6cf0-486a-be22-9674854daf11
      position: {x: -350, y: 210}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|108dca79-fc50-4974-be67-98b51b901956
    - fullName: SystemInt32.__ToString__SystemString
      uid: 3e7751f7-bab9-46ab-90f8-6e740a487e65
      position: {x: 60, y: -225}
      nodeUIDs:
      - 18427a69-ec81-412b-b6ea-b13cfed20d19|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|0
    - fullName: Event_OnDeserialization
      uid: 502e5cb0-cf73-473a-8457-b591e0bee4c3
      position: {x: 110, y: 75}
      nodeUIDs: []
      flowUIDs:
      - 4b420ac5-0590-4ed1-b0c0-6c7136ddef8b
      nodeValues: []
    - fullName: Event_OnOwnershipRequest
      uid: 02417bfb-0464-4584-b64c-29c5302530a4
      position: {x: -340, y: 435}
      nodeUIDs: []
      flowUIDs:
      - 5944f1b9-3c28-4fee-abbc-fc775e1c24a8
      nodeValues: []
    - fullName: Set_ReturnValue
      uid: 5944f1b9-3c28-4fee-abbc-fc775e1c24a8
      position: {x: 50, y: 435}
      nodeUIDs:
      - 
      - b784d986-c35a-44ce-883b-725e5c621381|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|dcb6b65b-bb92-45ba-9d08-61604850fd9c
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Variable_SystemObject
      uid: dcb6b65b-bb92-45ba-9d08-61604850fd9c
      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: b784d986-c35a-44ce-883b-725e5c621381
      position: {x: -75, y: 525}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|True
    - fullName: Block
      uid: 40dc9196-2fe8-4e87-a053-ec90c17ca405
      position: {x: -345, y: -765}
      nodeUIDs: []
      flowUIDs:
      - bf56fabd-f340-4b44-82d6-9c9c0564ad70
      - 319f2ce6-c6ec-43c5-b879-fa9c8d104961
      nodeValues: []
    - fullName: VRCSDKBaseNetworking.__SetOwner__VRCSDKBaseVRCPlayerApi_UnityEngineGameObject__SystemVoid
      uid: bf56fabd-f340-4b44-82d6-9c9c0564ad70
      position: {x: 60, y: -765}
      nodeUIDs:
      - 8fc9f303-8f59-4d4e-a0d1-350e22618a9b|0
      - 29cf5070-97a3-46d9-be22-a063b7fbf363|0
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: VRCSDKBaseNetworking.__get_LocalPlayer__VRCSDKBaseVRCPlayerApi
      uid: 8fc9f303-8f59-4d4e-a0d1-350e22618a9b
      position: {x: -135, y: -685}
      nodeUIDs: []
      flowUIDs: []
      nodeValues: []
    - fullName: Const_This
      uid: 29cf5070-97a3-46d9-be22-a063b7fbf363
      position: {x: -90, y: -600}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: Const_This
      uid: 365f49b5-c24c-494d-bebe-0c80e2d225a2
      position: {x: -455, y: -275}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    - fullName: VRCUdonCommonInterfacesIUdonEventReceiver.__RequestSerialization__SystemVoid
      uid: 76acdc6d-5ee9-4335-9f19-0b89a232057b
      position: {x: 640, y: -385}
      nodeUIDs:
      - 
      flowUIDs: []
      nodeValues:
      - unityObjectValue: {fileID: 0}
        stringValue: 
    updateOrder: 0
  graphElementData:
  - type: 2
    uid: 1e5e4bad-4245-446a-9a2d-60da0b040c87
    jsonData: '{"uid":"1e5e4bad-4245-446a-9a2d-60da0b040c87","layout":{"serializedVersion":"2","x":-480.0,"y":-460.0,"width":694.0,"height":393.0},"containedElements":["cdd58849-782a-4df1-bb77-4faa31abf7dc","18427a69-ec81-412b-b6ea-b13cfed20d19","ff9f3dde-4313-43a8-b8a3-f61983d0fd81","319f2ce6-c6ec-43c5-b879-fa9c8d104961","63db96ca-ddb7-4ca4-b382-c08cd2172338","3e7751f7-bab9-46ab-90f8-6e740a487e65","365f49b5-c24c-494d-bebe-0c80e2d225a2"],"title":"Increase
      clickCount by 1","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 2
    uid: df263115-203a-4875-bb78-5c4bbe5c4f9f
    jsonData: '{"uid":"df263115-203a-4875-bb78-5c4bbe5c4f9f","layout":{"serializedVersion":"2","x":-365.0,"y":370.0,"width":599.0,"height":263.0},"containedElements":["02417bfb-0464-4584-b64c-29c5302530a4","5944f1b9-3c28-4fee-abbc-fc775e1c24a8","b784d986-c35a-44ce-883b-725e5c621381"],"title":"Approve
      Ownership Transfers","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 2
    uid: 53130751-f15b-4965-9651-76c8d7821be2
    jsonData: '{"uid":"53130751-f15b-4965-9651-76c8d7821be2","layout":{"serializedVersion":"2","x":100.85308837890625,"y":-721.3858032226563,"width":128.0,"height":128.0},"containedElements":["29cf5070-97a3-46d9-be22-a063b7fbf363","8fc9f303-8f59-4d4e-a0d1-350e22618a9b","bf56fabd-f340-4b44-82d6-9c9c0564ad70"],"title":"Become
      Owner","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 2
    uid: e6b27332-142a-4fdf-b5f0-55259986e0d5
    jsonData: '{"uid":"e6b27332-142a-4fdf-b5f0-55259986e0d5","layout":{"serializedVersion":"2","x":-585.0,"y":-830.0,"width":360.0,"height":220.0},"containedElements":["40dc9196-2fe8-4e87-a053-ec90c17ca405","852f1237-e9f1-4cb5-bda2-fb88201d3829"],"title":"OnClick,
      do two things in order","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 3
    uid: 78f29d17-6063-4cf3-a7b5-770dd2725a3f
    jsonData: '{"uid":"78f29d17-6063-4cf3-a7b5-770dd2725a3f","layout":{"serializedVersion":"2","x":-532.0634765625,"y":122.3983154296875,"width":329.1421813964844,"height":80.44125366210938},"title":"clickCount
      is synchronized from the Owner to everyone else","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 3
    uid: 044dd017-f2d8-49b1-b3f8-193f57d08b82
    jsonData: '{"uid":"044dd017-f2d8-49b1-b3f8-193f57d08b82","layout":{"serializedVersion":"2","x":-975.0,"y":-765.0,"width":355.2675476074219,"height":87.34739685058594},"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}}'
  - type: 3
    uid: 6d8100ed-ed44-4f98-9bc5-2276e764a4b9
    jsonData: '{"uid":"6d8100ed-ed44-4f98-9bc5-2276e764a4b9","layout":{"serializedVersion":"2","x":-96.1375732421875,"y":58.6796875,"width":195.0,"height":113.0},"title":"This
      event runs on everyone EXCEPT the Owner.","layer":0,"elementTypeColor":{"r":0.0,"g":0.0,"b":0.0,"a":0.0}}'
  - type: 5
    uid: 5d0f4cc4-6854-454f-bb77-8e1bb8842672
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":130.0,"width":211.0,"height":262.0}}'
  - type: 4
    uid: 660ed7e9-fdef-48a0-be18-1e45b935b733
    jsonData: '{"visible":true,"layout":{"serializedVersion":"2","x":10.0,"y":20.0,"width":0.0,"height":0.0}}'
  viewTransform:
    position: {x: 519.3883, y: 634.93195}
    scale: 0.57175326
  version: 1.0.0
  showAssembly: 0
