diff --git a/Assets/Replay/Background.cs b/Assets/Replay/Background.cs new file mode 100644 index 0000000000000000000000000000000000000000..a621bb1d7d8b7ebafe5e41f06ce908a0b3f16437 --- /dev/null +++ b/Assets/Replay/Background.cs @@ -0,0 +1,22 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Background : MonoBehaviour +{ + bool display = true; + + public void ToggleDisplay() + { + if (!display) + { + this.gameObject.SetActive (true); + display = true; + } + else + { + this.gameObject.SetActive (false); + display = false; + } + } +} diff --git a/Assets/Replay/Background.cs.meta b/Assets/Replay/Background.cs.meta new file mode 100644 index 0000000000000000000000000000000000000000..792b1d1e55184e26e0885779e2a485f6037186f7 --- /dev/null +++ b/Assets/Replay/Background.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 0919eeb05ee27384aa2e2fdb93eff98f +timeCreated: 1516187864 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Replay.unity b/Assets/Scenes/Replay.unity index 0092056df618f4e0f7233bd74703f29345f118e5..68ea584834fd7ef32bafbd6782118303527b843f 100644 --- a/Assets/Scenes/Replay.unity +++ b/Assets/Scenes/Replay.unity @@ -273,6 +273,17 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 + - m_Target: {fileID: 746585357} + m_MethodName: ToggleDisplay + 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 &425149265 @@ -1068,6 +1079,48 @@ CanvasRenderer: m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 704240553} +--- !u!1 &746585355 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 746585356} + - component: {fileID: 746585357} + m_Layer: 0 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &746585356 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 746585355} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 869340370} + - {fileID: 2101849197} + m_Father: {fileID: 1394823279} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &746585357 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 746585355} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0919eeb05ee27384aa2e2fdb93eff98f, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1001 &768548351 Prefab: m_ObjectHideFlags: 0 @@ -1237,9 +1290,9 @@ Transform: m_GameObject: {fileID: 869340369} m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: -0.7071068} m_LocalPosition: {x: 0, y: 0, z: 620} - m_LocalScale: {x: 160, y: 1, z: 90} + m_LocalScale: {x: 160, y: 1, z: 90.00003} m_Children: [] - m_Father: {fileID: 1394823279} + m_Father: {fileID: 746585356} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 270, y: 0, z: 0} --- !u!23 &869340371 @@ -1559,8 +1612,7 @@ Transform: m_LocalPosition: {x: -658.8754, y: -284.68463, z: 21.104391} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - - {fileID: 869340370} - - {fileID: 2101849197} + - {fileID: 746585356} m_Father: {fileID: 1848223075} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -4270,7 +4322,7 @@ Transform: m_LocalPosition: {x: 0, y: 0, z: 618} m_LocalScale: {x: 160, y: 1, z: 90} m_Children: [] - m_Father: {fileID: 1394823279} + m_Father: {fileID: 746585356} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 270, y: 0, z: 0} --- !u!23 &2101849198