김다솜

start scene 구현

1 +fileFormatVersion: 2
2 +guid: 153efcde19b74a34897934fe921c825d
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: c91b4a6d4388ee442ab29a44fd974180
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + grayScaleToAlpha: 0
27 + generateCubemap: 6
28 + cubemapConvolution: 0
29 + seamlessCubemap: 0
30 + textureFormat: 1
31 + maxTextureSize: 2048
32 + textureSettings:
33 + serializedVersion: 2
34 + filterMode: -1
35 + aniso: -1
36 + mipBias: -100
37 + wrapU: -1
38 + wrapV: -1
39 + wrapW: -1
40 + nPOTScale: 1
41 + lightmap: 0
42 + compressionQuality: 50
43 + spriteMode: 0
44 + spriteExtrude: 1
45 + spriteMeshType: 1
46 + alignment: 0
47 + spritePivot: {x: 0.5, y: 0.5}
48 + spritePixelsToUnits: 100
49 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 + spriteGenerateFallbackPhysicsShape: 1
51 + alphaUsage: 1
52 + alphaIsTransparency: 0
53 + spriteTessellationDetail: -1
54 + textureType: 0
55 + textureShape: 1
56 + singleChannelComponent: 0
57 + maxTextureSizeSet: 0
58 + compressionQualitySet: 0
59 + textureFormatSet: 0
60 + applyGammaDecoding: 0
61 + platformSettings:
62 + - serializedVersion: 3
63 + buildTarget: DefaultTexturePlatform
64 + maxTextureSize: 2048
65 + resizeAlgorithm: 0
66 + textureFormat: -1
67 + textureCompression: 1
68 + compressionQuality: 50
69 + crunchedCompression: 0
70 + allowsAlphaSplitting: 0
71 + overridden: 0
72 + androidETC2FallbackOverride: 0
73 + forceMaximumCompressionQuality_BC6H_BC7: 0
74 + spriteSheet:
75 + serializedVersion: 2
76 + sprites: []
77 + outline: []
78 + physicsShape: []
79 + bones: []
80 + spriteID:
81 + internalID: 0
82 + vertices: []
83 + indices:
84 + edges: []
85 + weights: []
86 + secondaryTextures: []
87 + spritePackingTag:
88 + pSDRemoveMatte: 0
89 + pSDShowRemoveMatteOption: 0
90 + userData:
91 + assetBundleName:
92 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: b0dc99ec0d73fa443bfb2fa60981b652
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + grayScaleToAlpha: 0
27 + generateCubemap: 6
28 + cubemapConvolution: 0
29 + seamlessCubemap: 0
30 + textureFormat: 1
31 + maxTextureSize: 2048
32 + textureSettings:
33 + serializedVersion: 2
34 + filterMode: -1
35 + aniso: -1
36 + mipBias: -100
37 + wrapU: -1
38 + wrapV: -1
39 + wrapW: -1
40 + nPOTScale: 1
41 + lightmap: 0
42 + compressionQuality: 50
43 + spriteMode: 0
44 + spriteExtrude: 1
45 + spriteMeshType: 1
46 + alignment: 0
47 + spritePivot: {x: 0.5, y: 0.5}
48 + spritePixelsToUnits: 100
49 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 + spriteGenerateFallbackPhysicsShape: 1
51 + alphaUsage: 1
52 + alphaIsTransparency: 0
53 + spriteTessellationDetail: -1
54 + textureType: 0
55 + textureShape: 1
56 + singleChannelComponent: 0
57 + maxTextureSizeSet: 0
58 + compressionQualitySet: 0
59 + textureFormatSet: 0
60 + applyGammaDecoding: 0
61 + platformSettings:
62 + - serializedVersion: 3
63 + buildTarget: DefaultTexturePlatform
64 + maxTextureSize: 2048
65 + resizeAlgorithm: 0
66 + textureFormat: -1
67 + textureCompression: 1
68 + compressionQuality: 50
69 + crunchedCompression: 0
70 + allowsAlphaSplitting: 0
71 + overridden: 0
72 + androidETC2FallbackOverride: 0
73 + forceMaximumCompressionQuality_BC6H_BC7: 0
74 + spriteSheet:
75 + serializedVersion: 2
76 + sprites: []
77 + outline: []
78 + physicsShape: []
79 + bones: []
80 + spriteID:
81 + internalID: 0
82 + vertices: []
83 + indices:
84 + edges: []
85 + weights: []
86 + secondaryTextures: []
87 + spritePackingTag:
88 + pSDRemoveMatte: 0
89 + pSDShowRemoveMatteOption: 0
90 + userData:
91 + assetBundleName:
92 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 19c5f02f66a929a4eb81a0607811fc01
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + grayScaleToAlpha: 0
27 + generateCubemap: 6
28 + cubemapConvolution: 0
29 + seamlessCubemap: 0
30 + textureFormat: 1
31 + maxTextureSize: 2048
32 + textureSettings:
33 + serializedVersion: 2
34 + filterMode: -1
35 + aniso: -1
36 + mipBias: -100
37 + wrapU: -1
38 + wrapV: -1
39 + wrapW: -1
40 + nPOTScale: 1
41 + lightmap: 0
42 + compressionQuality: 50
43 + spriteMode: 0
44 + spriteExtrude: 1
45 + spriteMeshType: 1
46 + alignment: 0
47 + spritePivot: {x: 0.5, y: 0.5}
48 + spritePixelsToUnits: 100
49 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 + spriteGenerateFallbackPhysicsShape: 1
51 + alphaUsage: 1
52 + alphaIsTransparency: 0
53 + spriteTessellationDetail: -1
54 + textureType: 0
55 + textureShape: 1
56 + singleChannelComponent: 0
57 + maxTextureSizeSet: 0
58 + compressionQualitySet: 0
59 + textureFormatSet: 0
60 + applyGammaDecoding: 0
61 + platformSettings:
62 + - serializedVersion: 3
63 + buildTarget: DefaultTexturePlatform
64 + maxTextureSize: 2048
65 + resizeAlgorithm: 0
66 + textureFormat: -1
67 + textureCompression: 1
68 + compressionQuality: 50
69 + crunchedCompression: 0
70 + allowsAlphaSplitting: 0
71 + overridden: 0
72 + androidETC2FallbackOverride: 0
73 + forceMaximumCompressionQuality_BC6H_BC7: 0
74 + spriteSheet:
75 + serializedVersion: 2
76 + sprites: []
77 + outline: []
78 + physicsShape: []
79 + bones: []
80 + spriteID:
81 + internalID: 0
82 + vertices: []
83 + indices:
84 + edges: []
85 + weights: []
86 + secondaryTextures: []
87 + spritePackingTag:
88 + pSDRemoveMatte: 0
89 + pSDShowRemoveMatteOption: 0
90 + userData:
91 + assetBundleName:
92 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: c93804e8ce15de34abd60eb3298d6b99
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + grayScaleToAlpha: 0
27 + generateCubemap: 6
28 + cubemapConvolution: 0
29 + seamlessCubemap: 0
30 + textureFormat: 1
31 + maxTextureSize: 2048
32 + textureSettings:
33 + serializedVersion: 2
34 + filterMode: -1
35 + aniso: -1
36 + mipBias: -100
37 + wrapU: -1
38 + wrapV: -1
39 + wrapW: -1
40 + nPOTScale: 1
41 + lightmap: 0
42 + compressionQuality: 50
43 + spriteMode: 0
44 + spriteExtrude: 1
45 + spriteMeshType: 1
46 + alignment: 0
47 + spritePivot: {x: 0.5, y: 0.5}
48 + spritePixelsToUnits: 100
49 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 + spriteGenerateFallbackPhysicsShape: 1
51 + alphaUsage: 1
52 + alphaIsTransparency: 0
53 + spriteTessellationDetail: -1
54 + textureType: 0
55 + textureShape: 1
56 + singleChannelComponent: 0
57 + maxTextureSizeSet: 0
58 + compressionQualitySet: 0
59 + textureFormatSet: 0
60 + applyGammaDecoding: 0
61 + platformSettings:
62 + - serializedVersion: 3
63 + buildTarget: DefaultTexturePlatform
64 + maxTextureSize: 2048
65 + resizeAlgorithm: 0
66 + textureFormat: -1
67 + textureCompression: 1
68 + compressionQuality: 50
69 + crunchedCompression: 0
70 + allowsAlphaSplitting: 0
71 + overridden: 0
72 + androidETC2FallbackOverride: 0
73 + forceMaximumCompressionQuality_BC6H_BC7: 0
74 + spriteSheet:
75 + serializedVersion: 2
76 + sprites: []
77 + outline: []
78 + physicsShape: []
79 + bones: []
80 + spriteID:
81 + internalID: 0
82 + vertices: []
83 + indices:
84 + edges: []
85 + weights: []
86 + secondaryTextures: []
87 + spritePackingTag:
88 + pSDRemoveMatte: 0
89 + pSDShowRemoveMatteOption: 0
90 + userData:
91 + assetBundleName:
92 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 8093debc433b2aa49b23e6f5eca0e7e6
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + grayScaleToAlpha: 0
27 + generateCubemap: 6
28 + cubemapConvolution: 0
29 + seamlessCubemap: 0
30 + textureFormat: 1
31 + maxTextureSize: 2048
32 + textureSettings:
33 + serializedVersion: 2
34 + filterMode: -1
35 + aniso: -1
36 + mipBias: -100
37 + wrapU: -1
38 + wrapV: -1
39 + wrapW: -1
40 + nPOTScale: 1
41 + lightmap: 0
42 + compressionQuality: 50
43 + spriteMode: 0
44 + spriteExtrude: 1
45 + spriteMeshType: 1
46 + alignment: 0
47 + spritePivot: {x: 0.5, y: 0.5}
48 + spritePixelsToUnits: 100
49 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 + spriteGenerateFallbackPhysicsShape: 1
51 + alphaUsage: 1
52 + alphaIsTransparency: 0
53 + spriteTessellationDetail: -1
54 + textureType: 0
55 + textureShape: 1
56 + singleChannelComponent: 0
57 + maxTextureSizeSet: 0
58 + compressionQualitySet: 0
59 + textureFormatSet: 0
60 + applyGammaDecoding: 0
61 + platformSettings:
62 + - serializedVersion: 3
63 + buildTarget: DefaultTexturePlatform
64 + maxTextureSize: 2048
65 + resizeAlgorithm: 0
66 + textureFormat: -1
67 + textureCompression: 1
68 + compressionQuality: 50
69 + crunchedCompression: 0
70 + allowsAlphaSplitting: 0
71 + overridden: 0
72 + androidETC2FallbackOverride: 0
73 + forceMaximumCompressionQuality_BC6H_BC7: 0
74 + spriteSheet:
75 + serializedVersion: 2
76 + sprites: []
77 + outline: []
78 + physicsShape: []
79 + bones: []
80 + spriteID:
81 + internalID: 0
82 + vertices: []
83 + indices:
84 + edges: []
85 + weights: []
86 + secondaryTextures: []
87 + spritePackingTag:
88 + pSDRemoveMatte: 0
89 + pSDShowRemoveMatteOption: 0
90 + userData:
91 + assetBundleName:
92 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 8c40ca1801107384caf65dcf9f071e90
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + grayScaleToAlpha: 0
27 + generateCubemap: 6
28 + cubemapConvolution: 0
29 + seamlessCubemap: 0
30 + textureFormat: 1
31 + maxTextureSize: 2048
32 + textureSettings:
33 + serializedVersion: 2
34 + filterMode: -1
35 + aniso: -1
36 + mipBias: -100
37 + wrapU: -1
38 + wrapV: -1
39 + wrapW: -1
40 + nPOTScale: 1
41 + lightmap: 0
42 + compressionQuality: 50
43 + spriteMode: 0
44 + spriteExtrude: 1
45 + spriteMeshType: 1
46 + alignment: 0
47 + spritePivot: {x: 0.5, y: 0.5}
48 + spritePixelsToUnits: 100
49 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 + spriteGenerateFallbackPhysicsShape: 1
51 + alphaUsage: 1
52 + alphaIsTransparency: 0
53 + spriteTessellationDetail: -1
54 + textureType: 0
55 + textureShape: 1
56 + singleChannelComponent: 0
57 + maxTextureSizeSet: 0
58 + compressionQualitySet: 0
59 + textureFormatSet: 0
60 + applyGammaDecoding: 0
61 + platformSettings:
62 + - serializedVersion: 3
63 + buildTarget: DefaultTexturePlatform
64 + maxTextureSize: 2048
65 + resizeAlgorithm: 0
66 + textureFormat: -1
67 + textureCompression: 1
68 + compressionQuality: 50
69 + crunchedCompression: 0
70 + allowsAlphaSplitting: 0
71 + overridden: 0
72 + androidETC2FallbackOverride: 0
73 + forceMaximumCompressionQuality_BC6H_BC7: 0
74 + spriteSheet:
75 + serializedVersion: 2
76 + sprites: []
77 + outline: []
78 + physicsShape: []
79 + bones: []
80 + spriteID:
81 + internalID: 0
82 + vertices: []
83 + indices:
84 + edges: []
85 + weights: []
86 + secondaryTextures: []
87 + spritePackingTag:
88 + pSDRemoveMatte: 0
89 + pSDShowRemoveMatteOption: 0
90 + userData:
91 + assetBundleName:
92 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using UnityEngine.UI;
5 +using UnityEngine.EventSystems;
6 +
7 +public class ClickExercise : MonoBehaviour
8 +{
9 + RawImage btnImage;
10 + RawImage btnImage2;
11 + GameObject btnParent; //버튼들의 부모
12 +
13 + private void Start()
14 + {
15 + btnParent = GameObject.Find("BtnGroup").gameObject; // "부모의 이름"으로 찾습니다.
16 + }
17 +
18 + public void GetBtn()
19 + {
20 + GameObject tempBtn = EventSystem.current.currentSelectedGameObject;
21 + btnImage = tempBtn.GetComponent<RawImage>(); // 해당 오브젝트의 image 컴포넌트를 받음
22 +
23 + int btnLength = btnParent.transform.childCount; // 자식의 갯수를 파악
24 + Debug.Log(btnLength);
25 + for (int i = 0; i < btnLength; i++) // 자식의 갯수 만큼 i++ 실행
26 + {
27 + //transfrom.Getchild(i)를 통해 버튼을 하나씩 색인
28 + GameObject tempBtns = btnParent.transform.GetChild(i).gameObject; // 해당 버튼 이미지 컴포넌트를 불러온 후 변경
29 + btnImage2 = tempBtns.GetComponent<RawImage>();
30 + if (tempBtns.name == "Squat")
31 + {
32 + btnImage2.texture = Resources.Load("Squat_off", typeof(Texture2D)) as Texture2D;
33 + }
34 + else if (tempBtns.name == "Lunge")
35 + {
36 + btnImage2.texture = Resources.Load("Lunge_off", typeof(Texture2D)) as Texture2D;
37 + }
38 + else if (tempBtns.name == "SideHiKick")
39 + {
40 + btnImage2.texture = Resources.Load("SideHiKick_off", typeof(Texture2D)) as Texture2D;
41 + }
42 + //Debug.Log(tempBtns);
43 + }
44 +
45 + if (btnImage.name == "Squat")
46 + {
47 + btnImage.texture = Resources.Load("Squat_on", typeof(Texture2D)) as Texture2D;
48 + }
49 + else if (btnImage.name == "Lunge")
50 + {
51 + btnImage.texture = Resources.Load("Lunge_on", typeof(Texture2D)) as Texture2D;
52 + }
53 + else if (btnImage.name == "SideHiKick")
54 + {
55 + btnImage.texture = Resources.Load("SideHiKick_on", typeof(Texture2D)) as Texture2D;
56 + }
57 + }
58 +}
1 +fileFormatVersion: 2
2 +guid: 5e1046efbe0d37140aba6bcee603811a
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant: