From ba22241afad4921c32a4318f6825e0180ad64091 Mon Sep 17 00:00:00 2001 From: Mateus Pires Date: Tue, 29 Sep 2015 16:13:43 -0300 Subject: [PATCH] CoResposta do boÃtão de ativar subtitle --- Assets/Scenes/Main.unity | 282 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- Assets/Scripts/ColorChangeState.cs | 5 +++++ Assets/Scripts/ColorChangeState.cs.meta | 12 ++++++++++++ Assets/Scripts/SwitchActiveStatus.cs | 7 ++++++- Assets/Scripts/SwitchButtonCollor.cs | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Assets/Scripts/SwitchButtonCollor.cs.meta | 12 ++++++++++++ Assets/Scripts/UIManagerInfo.cs | 54 ------------------------------------------------------ Assets/Scripts/UIManagerInfo.cs.meta | 12 ------------ Assets/Scripts/UIManagerLoading.cs | 36 ------------------------------------ Assets/Scripts/UIManagerLoading.cs.meta | 12 ------------ Assets/Scripts/UIManagerMain.cs | 17 ----------------- Assets/Scripts/UIManagerMain.cs.meta | 12 ------------ Assets/Scripts/UIManagerTextEntry.cs | 58 ---------------------------------------------------------- Assets/Scripts/UIManagerTextEntry.cs.meta | 12 ------------ Assets/Scripts/UIManagerTutorial.cs | 28 ---------------------------- Assets/Scripts/UIManagerTutorial.cs.meta | 12 ------------ Assets/Scripts/UIManagers.meta | 9 +++++++++ Assets/Scripts/UIManagers/UIManagerInfo.cs | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Assets/Scripts/UIManagers/UIManagerInfo.cs.meta | 12 ++++++++++++ Assets/Scripts/UIManagers/UIManagerLoading.cs | 36 ++++++++++++++++++++++++++++++++++++ Assets/Scripts/UIManagers/UIManagerLoading.cs.meta | 12 ++++++++++++ Assets/Scripts/UIManagers/UIManagerMain.cs | 17 +++++++++++++++++ Assets/Scripts/UIManagers/UIManagerMain.cs.meta | 12 ++++++++++++ Assets/Scripts/UIManagers/UIManagerTextEntry.cs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Assets/Scripts/UIManagers/UIManagerTextEntry.cs.meta | 12 ++++++++++++ Assets/Scripts/UIManagers/UIManagerTutorial.cs | 28 ++++++++++++++++++++++++++++ Assets/Scripts/UIManagers/UIManagerTutorial.cs.meta | 12 ++++++++++++ 27 files changed, 628 insertions(+), 265 deletions(-) create mode 100644 Assets/Scripts/ColorChangeState.cs create mode 100644 Assets/Scripts/ColorChangeState.cs.meta create mode 100644 Assets/Scripts/SwitchButtonCollor.cs create mode 100644 Assets/Scripts/SwitchButtonCollor.cs.meta delete mode 100644 Assets/Scripts/UIManagerInfo.cs delete mode 100644 Assets/Scripts/UIManagerInfo.cs.meta delete mode 100644 Assets/Scripts/UIManagerLoading.cs delete mode 100644 Assets/Scripts/UIManagerLoading.cs.meta delete mode 100644 Assets/Scripts/UIManagerMain.cs delete mode 100644 Assets/Scripts/UIManagerMain.cs.meta delete mode 100644 Assets/Scripts/UIManagerTextEntry.cs delete mode 100644 Assets/Scripts/UIManagerTextEntry.cs.meta delete mode 100644 Assets/Scripts/UIManagerTutorial.cs delete mode 100644 Assets/Scripts/UIManagerTutorial.cs.meta create mode 100644 Assets/Scripts/UIManagers.meta create mode 100644 Assets/Scripts/UIManagers/UIManagerInfo.cs create mode 100644 Assets/Scripts/UIManagers/UIManagerInfo.cs.meta create mode 100644 Assets/Scripts/UIManagers/UIManagerLoading.cs create mode 100644 Assets/Scripts/UIManagers/UIManagerLoading.cs.meta create mode 100644 Assets/Scripts/UIManagers/UIManagerMain.cs create mode 100644 Assets/Scripts/UIManagers/UIManagerMain.cs.meta create mode 100644 Assets/Scripts/UIManagers/UIManagerTextEntry.cs create mode 100644 Assets/Scripts/UIManagers/UIManagerTextEntry.cs.meta create mode 100644 Assets/Scripts/UIManagers/UIManagerTutorial.cs create mode 100644 Assets/Scripts/UIManagers/UIManagerTutorial.cs.meta diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 4f8f8c3..8ecf1cc 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -1887,6 +1887,7 @@ GameObject: - 222: {fileID: 460346712} - 114: {fileID: 460346711} - 114: {fileID: 460346710} + - 114: {fileID: 460346713} m_Layer: 5 m_Name: b_subs m_TagString: Untagged @@ -1963,6 +1964,17 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 + - m_Target: {fileID: 460346713} + m_MethodName: switchColorByReference + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &460346711 @@ -1994,6 +2006,20 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 460346708} +--- !u!114 &460346713 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 460346708} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29f6ab4437be5fb45a87e188a0176b8d, type: 3} + m_Name: + m_EditorClassIdentifier: + thisButton: {fileID: 460346710} + reference: {fileID: 1066268158} + isEnabled: 1 --- !u!1 &496020597 GameObject: m_ObjectHideFlags: 0 @@ -2498,6 +2524,10 @@ Prefab: m_Modification: m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.size + value: 40 + objectReference: {fileID: 0} - target: {fileID: 491010, guid: 00197fc9877daa14c963e5917de36124, type: 2} propertyPath: m_LocalPosition.x value: 0 @@ -2554,6 +2584,170 @@ Prefab: propertyPath: m_Center.z value: -1.45801504e-08 objectReference: {fileID: 0} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[0] + value: + objectReference: {fileID: 7400000, guid: 0aed13c3b353fdc45bffc343452d1731, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[1] + value: + objectReference: {fileID: 7400000, guid: fc5f4d91c19efc74380c6647de635c9b, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[2] + value: + objectReference: {fileID: 7400000, guid: 80202b8af4368ec41967465e1b3aee77, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[3] + value: + objectReference: {fileID: 7400000, guid: f7c4781cd3dd7e941a8f824ac0c8e50b, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[4] + value: + objectReference: {fileID: 7400000, guid: 1320fc7940caa544b9b35dde9b87b8fd, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[5] + value: + objectReference: {fileID: 7400000, guid: 1fd351fcbc07ec74e9d9e05a1ee8096c, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[6] + value: + objectReference: {fileID: 7400000, guid: db310f6b24d2438468e97914e51942e3, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[7] + value: + objectReference: {fileID: 7400000, guid: 68d10f35177476b4d954eb82cd771d8c, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[8] + value: + objectReference: {fileID: 7400000, guid: e8a4795c8f7f11243939b3850ad48485, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[9] + value: + objectReference: {fileID: 7400000, guid: 0621c494250c7254cab22371ff689f69, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[10] + value: + objectReference: {fileID: 7400000, guid: de46f27b443aced439d525c331292c95, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[11] + value: + objectReference: {fileID: 7400000, guid: e9d2ab4f57bf67b4e9b1d6e702c350ec, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[12] + value: + objectReference: {fileID: 7400000, guid: 5986a1df6727eb145947edff2d158390, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[13] + value: + objectReference: {fileID: 7400000, guid: 6ea006602797e9947a9aab0a72bdb119, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[14] + value: + objectReference: {fileID: 7400000, guid: 8b68948e8624fa84b8d8e2b4d56bc1c0, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[15] + value: + objectReference: {fileID: 7400000, guid: 9eb245caa18790841bf9259c5c2641b0, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[16] + value: + objectReference: {fileID: 7400000, guid: 625273603d055064880c6108c89ac180, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[17] + value: + objectReference: {fileID: 7400000, guid: 2e1df61261fb6f045a2b2c83abe98af0, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[18] + value: + objectReference: {fileID: 7400000, guid: d5b330782914c804d9eaf252d85c9a75, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[19] + value: + objectReference: {fileID: 7400000, guid: ed400e6678ca0df4f8b97791638cde86, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[20] + value: + objectReference: {fileID: 7400000, guid: 9552df06787b0d14792f8af5291cbc95, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[21] + value: + objectReference: {fileID: 7400000, guid: a53eeb143147b304f9360c6b1e41d14d, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[22] + value: + objectReference: {fileID: 7400000, guid: 0a21e496ee57c5648bec1e906fe1625f, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[23] + value: + objectReference: {fileID: 7400000, guid: 70ccd19b2dc6cd84f91f45877d67f678, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[24] + value: + objectReference: {fileID: 7400000, guid: e01df52c90a07a641bf91645368c654c, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[25] + value: + objectReference: {fileID: 7400000, guid: a204111404089fd4e95c033cc7c46e19, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[26] + value: + objectReference: {fileID: 7400000, guid: 83ea47651b1acd64b9e648192c5fbee4, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[27] + value: + objectReference: {fileID: 7400000, guid: f1a1370a0a7bea54c916c66150525fa2, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[28] + value: + objectReference: {fileID: 7400000, guid: 8c0a2435854bb7041ae63db46a6d2c85, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[29] + value: + objectReference: {fileID: 7400000, guid: 2460f8be0322df44ea684ce55ab12092, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[30] + value: + objectReference: {fileID: 7400000, guid: 29def6336d4320c40b67592dc9f1fade, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[31] + value: + objectReference: {fileID: 7400000, guid: 7859a09e329c6cf419a04bf90bfb389a, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[32] + value: + objectReference: {fileID: 7400000, guid: cecc27c5878d0e244a84b59895a3c755, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[33] + value: + objectReference: {fileID: 7400000, guid: 168b30fca8ea45b48908de0b91c8e29d, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[34] + value: + objectReference: {fileID: 7400000, guid: d93fd768a13297448ac0cacc8321f7d6, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[35] + value: + objectReference: {fileID: 7400000, guid: 709ecc425ca507141ad3ace78df339d6, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[36] + value: + objectReference: {fileID: 7400000, guid: 3e31ea2fd4d2f344bbe4fd6473f94dfb, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[37] + value: + objectReference: {fileID: 7400000, guid: c2082ba03c09f974bb789c7522c2ff58, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[38] + value: + objectReference: {fileID: 7400000, guid: bd4ac870b502a9f4780a63c0de092d06, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animations.Array.data[39] + value: + objectReference: {fileID: 7400000, guid: cabb127e31ba33047a4cabe18e785494, type: 2} + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} + propertyPath: m_Animation + value: + objectReference: {fileID: 7400000, guid: e9d2ab4f57bf67b4e9b1d6e702c350ec, type: 2} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 00197fc9877daa14c963e5917de36124, type: 2} m_IsPrefabParent: 0 @@ -4251,6 +4445,7 @@ GameObject: - 222: {fileID: 841998881} - 114: {fileID: 841998880} - 114: {fileID: 841998879} + - 114: {fileID: 841998882} m_Layer: 5 m_Name: b_subs m_TagString: Untagged @@ -4327,6 +4522,17 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 + - m_Target: {fileID: 841998882} + m_MethodName: switchColorByReference + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &841998880 @@ -4358,6 +4564,20 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 841998877} +--- !u!114 &841998882 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 841998877} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29f6ab4437be5fb45a87e188a0176b8d, type: 3} + m_Name: + m_EditorClassIdentifier: + thisButton: {fileID: 841998879} + reference: {fileID: 1066268158} + isEnabled: 1 --- !u!1 &886515941 GameObject: m_ObjectHideFlags: 0 @@ -7574,6 +7794,7 @@ GameObject: - 222: {fileID: 1439902021} - 114: {fileID: 1439902020} - 114: {fileID: 1439902019} + - 114: {fileID: 1439902022} m_Layer: 5 m_Name: t_loading_snippet m_TagString: loading_snippet @@ -7595,10 +7816,10 @@ RectTransform: - {fileID: 2125158392} m_Father: {fileID: 782282766} m_RootOrder: 0 - m_AnchorMin: {x: .5, y: .5} - m_AnchorMax: {x: .5, y: .5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 160, y: 30} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: -185} + m_SizeDelta: {x: 0, y: 370} m_Pivot: {x: .5, y: .5} --- !u!114 &1439902019 MonoBehaviour: @@ -7631,12 +7852,12 @@ MonoBehaviour: m_Color: {r: .0196078438, g: .678431392, b: .854902029, a: 1} m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 20 + m_FontSize: 60 m_FontStyle: 1 m_BestFit: 0 m_MinSize: 10 m_MaxSize: 40 - m_Alignment: 4 + m_Alignment: 7 m_RichText: 1 m_HorizontalOverflow: 1 m_VerticalOverflow: 0 @@ -7649,6 +7870,19 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1439902017} +--- !u!114 &1439902022 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1439902017} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 823c98ddc010736408f7ed99ec13991e, type: 3} + m_Name: + m_EditorClassIdentifier: + text: {fileID: 1439902020} + image: {fileID: 2125158395} --- !u!1 &1491086496 GameObject: m_ObjectHideFlags: 0 @@ -10173,6 +10407,7 @@ GameObject: - 222: {fileID: 1813892965} - 114: {fileID: 1813892964} - 114: {fileID: 1813892963} + - 114: {fileID: 1813892966} m_Layer: 5 m_Name: b_subs m_TagString: Untagged @@ -10249,6 +10484,17 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 + - m_Target: {fileID: 1813892966} + m_MethodName: switchColorByReference + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null --- !u!114 &1813892964 @@ -10280,6 +10526,20 @@ CanvasRenderer: type: 2} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1813892961} +--- !u!114 &1813892966 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1813892961} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 29f6ab4437be5fb45a87e188a0176b8d, type: 3} + m_Name: + m_EditorClassIdentifier: + thisButton: {fileID: 1813892963} + reference: {fileID: 1066268158} + isEnabled: 1 --- !u!1 &1814140553 GameObject: m_ObjectHideFlags: 0 @@ -11819,14 +12079,14 @@ RectTransform: m_GameObject: {fileID: 2125158391} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: .5, y: .5, z: 1} + m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 1439902018} m_RootOrder: 0 - m_AnchorMin: {x: .5, y: .5} - m_AnchorMax: {x: .5, y: .5} - m_AnchoredPosition: {x: 0, y: -40} - m_SizeDelta: {x: 100, y: 100} + m_AnchorMin: {x: .5, y: 0} + m_AnchorMax: {x: .5, y: 0} + m_AnchoredPosition: {x: 0, y: -90} + m_SizeDelta: {x: 120, y: 120} m_Pivot: {x: .5, y: .5} --- !u!114 &2125158393 MonoBehaviour: diff --git a/Assets/Scripts/ColorChangeState.cs b/Assets/Scripts/ColorChangeState.cs new file mode 100644 index 0000000..0511c83 --- /dev/null +++ b/Assets/Scripts/ColorChangeState.cs @@ -0,0 +1,5 @@ +interface ColorChangeState { + + bool getColorChangeState(); + +} diff --git a/Assets/Scripts/ColorChangeState.cs.meta b/Assets/Scripts/ColorChangeState.cs.meta new file mode 100644 index 0000000..b54f69e --- /dev/null +++ b/Assets/Scripts/ColorChangeState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d83e5bebf7655944adc5d9a7bc02fde +timeCreated: 1443550977 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/SwitchActiveStatus.cs b/Assets/Scripts/SwitchActiveStatus.cs index 58792cf..a304479 100644 --- a/Assets/Scripts/SwitchActiveStatus.cs +++ b/Assets/Scripts/SwitchActiveStatus.cs @@ -1,7 +1,7 @@ using UnityEngine; using System; -public class SwitchActiveStatus : MonoBehaviour { +public class SwitchActiveStatus : MonoBehaviour, ColorChangeState { public bool show = true; @@ -14,4 +14,9 @@ public class SwitchActiveStatus : MonoBehaviour { } + public bool getColorChangeState() + { + return show; + } + } diff --git a/Assets/Scripts/SwitchButtonCollor.cs b/Assets/Scripts/SwitchButtonCollor.cs new file mode 100644 index 0000000..522f4be --- /dev/null +++ b/Assets/Scripts/SwitchButtonCollor.cs @@ -0,0 +1,60 @@ +using UnityEngine; +using System.Collections; +using UnityEngine.UI; + +public class SwitchButtonCollor : MonoBehaviour { + + public Button thisButton; + public GameObject reference; + private Graphic thisButtonGraphic; + + public bool isEnabled; + private static Color enabledColor = new Color(0.356F, 0.78F, 0.815F, 1F); + private static Color disabledColor = new Color(1F, 1F, 1F, 1F); + + + void Start () + { + if (thisButton == null) + thisButton = (Button) gameObject.GetComponent