SwitchButton.prefab 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. %YAML 1.1
  2. %TAG !u! tag:unity3d.com,2011:
  3. --- !u!1 &2592474333731781265
  4. GameObject:
  5. m_ObjectHideFlags: 0
  6. m_CorrespondingSourceObject: {fileID: 0}
  7. m_PrefabInstance: {fileID: 0}
  8. m_PrefabAsset: {fileID: 0}
  9. serializedVersion: 6
  10. m_Component:
  11. - component: {fileID: 8405105251002295487}
  12. - component: {fileID: 9188200410058943834}
  13. - component: {fileID: 3669755204484432778}
  14. - component: {fileID: 1502004855243293304}
  15. - component: {fileID: 2503024822347408175}
  16. m_Layer: 0
  17. m_Name: SwitchButton
  18. m_TagString: Untagged
  19. m_Icon: {fileID: 0}
  20. m_NavMeshLayer: 0
  21. m_StaticEditorFlags: 0
  22. m_IsActive: 1
  23. --- !u!224 &8405105251002295487
  24. RectTransform:
  25. m_ObjectHideFlags: 0
  26. m_CorrespondingSourceObject: {fileID: 0}
  27. m_PrefabInstance: {fileID: 0}
  28. m_PrefabAsset: {fileID: 0}
  29. m_GameObject: {fileID: 2592474333731781265}
  30. m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
  31. m_LocalPosition: {x: 0, y: 0, z: 0}
  32. m_LocalScale: {x: 1, y: 1, z: 1}
  33. m_ConstrainProportionsScale: 0
  34. m_Children: []
  35. m_Father: {fileID: 0}
  36. m_RootOrder: 0
  37. m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  38. m_AnchorMin: {x: 0.5, y: 0.5}
  39. m_AnchorMax: {x: 0.5, y: 0.5}
  40. m_AnchoredPosition: {x: 402, y: 134}
  41. m_SizeDelta: {x: 317, y: 125}
  42. m_Pivot: {x: 0.5, y: 0.5}
  43. --- !u!222 &9188200410058943834
  44. CanvasRenderer:
  45. m_ObjectHideFlags: 0
  46. m_CorrespondingSourceObject: {fileID: 0}
  47. m_PrefabInstance: {fileID: 0}
  48. m_PrefabAsset: {fileID: 0}
  49. m_GameObject: {fileID: 2592474333731781265}
  50. m_CullTransparentMesh: 1
  51. --- !u!114 &3669755204484432778
  52. MonoBehaviour:
  53. m_ObjectHideFlags: 0
  54. m_CorrespondingSourceObject: {fileID: 0}
  55. m_PrefabInstance: {fileID: 0}
  56. m_PrefabAsset: {fileID: 0}
  57. m_GameObject: {fileID: 2592474333731781265}
  58. m_Enabled: 1
  59. m_EditorHideFlags: 0
  60. m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
  61. m_Name:
  62. m_EditorClassIdentifier:
  63. m_Material: {fileID: 0}
  64. m_Color: {r: 1, g: 1, b: 1, a: 1}
  65. m_RaycastTarget: 1
  66. m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
  67. m_Maskable: 1
  68. m_OnCullStateChanged:
  69. m_PersistentCalls:
  70. m_Calls: []
  71. m_Sprite: {fileID: 21300000, guid: 6e4933635cb2b4d538df821bcf96ea3d, type: 3}
  72. m_Type: 0
  73. m_PreserveAspect: 0
  74. m_FillCenter: 1
  75. m_FillMethod: 4
  76. m_FillAmount: 1
  77. m_FillClockwise: 1
  78. m_FillOrigin: 0
  79. m_UseSpriteMesh: 0
  80. m_PixelsPerUnitMultiplier: 1
  81. --- !u!114 &1502004855243293304
  82. MonoBehaviour:
  83. m_ObjectHideFlags: 0
  84. m_CorrespondingSourceObject: {fileID: 0}
  85. m_PrefabInstance: {fileID: 0}
  86. m_PrefabAsset: {fileID: 0}
  87. m_GameObject: {fileID: 2592474333731781265}
  88. m_Enabled: 1
  89. m_EditorHideFlags: 0
  90. m_Script: {fileID: 11500000, guid: 2b56b230d9144419890563b7c8f7e324, type: 3}
  91. m_Name:
  92. m_EditorClassIdentifier:
  93. onSprite: {fileID: 21300000, guid: e9a976b171890401d9a540de20c67b0d, type: 3}
  94. offSprite: {fileID: 21300000, guid: 6e4933635cb2b4d538df821bcf96ea3d, type: 3}
  95. Flag: 0
  96. --- !u!114 &2503024822347408175
  97. MonoBehaviour:
  98. m_ObjectHideFlags: 0
  99. m_CorrespondingSourceObject: {fileID: 0}
  100. m_PrefabInstance: {fileID: 0}
  101. m_PrefabAsset: {fileID: 0}
  102. m_GameObject: {fileID: 2592474333731781265}
  103. m_Enabled: 1
  104. m_EditorHideFlags: 0
  105. m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
  106. m_Name:
  107. m_EditorClassIdentifier:
  108. m_Navigation:
  109. m_Mode: 3
  110. m_WrapAround: 0
  111. m_SelectOnUp: {fileID: 0}
  112. m_SelectOnDown: {fileID: 0}
  113. m_SelectOnLeft: {fileID: 0}
  114. m_SelectOnRight: {fileID: 0}
  115. m_Transition: 1
  116. m_Colors:
  117. m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
  118. m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
  119. m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
  120. m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
  121. m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
  122. m_ColorMultiplier: 1
  123. m_FadeDuration: 0.1
  124. m_SpriteState:
  125. m_HighlightedSprite: {fileID: 0}
  126. m_PressedSprite: {fileID: 0}
  127. m_SelectedSprite: {fileID: 0}
  128. m_DisabledSprite: {fileID: 0}
  129. m_AnimationTriggers:
  130. m_NormalTrigger: Normal
  131. m_HighlightedTrigger: Highlighted
  132. m_PressedTrigger: Pressed
  133. m_SelectedTrigger: Selected
  134. m_DisabledTrigger: Disabled
  135. m_Interactable: 1
  136. m_TargetGraphic: {fileID: 3669755204484432778}
  137. m_OnClick:
  138. m_PersistentCalls:
  139. m_Calls:
  140. - m_Target: {fileID: 1502004855243293304}
  141. m_TargetAssemblyTypeName: SwitchButtonComp, Assembly-CSharp
  142. m_MethodName: A__ClickSwitch
  143. m_Mode: 1
  144. m_Arguments:
  145. m_ObjectArgument: {fileID: 0}
  146. m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
  147. m_IntArgument: 0
  148. m_FloatArgument: 0
  149. m_StringArgument:
  150. m_BoolArgument: 0
  151. m_CallState: 2