사운드 추가, 출석부 작업 중..

This commit is contained in:
Ino 2025-09-10 09:11:14 +09:00
parent 103872094e
commit fff4839b2e
21 changed files with 1837 additions and 58 deletions

View File

@ -15,7 +15,7 @@ MonoBehaviour:
m_DefaultGroup: 965ebc3298ffc3f429a28032069aceb5 m_DefaultGroup: 965ebc3298ffc3f429a28032069aceb5
m_currentHash: m_currentHash:
serializedVersion: 2 serializedVersion: 2
Hash: 00000000000000000000000000000000 Hash: bec6c0dd3465e4efbf0bd870c628a769
m_OptimizeCatalogSize: 0 m_OptimizeCatalogSize: 0
m_BuildRemoteCatalog: 0 m_BuildRemoteCatalog: 0
m_CatalogRequestsTimeout: 0 m_CatalogRequestsTimeout: 0
@ -24,11 +24,11 @@ MonoBehaviour:
m_InternalBundleIdMode: 1 m_InternalBundleIdMode: 1
m_AssetLoadMode: 0 m_AssetLoadMode: 0
m_BundledAssetProviderType: m_BundledAssetProviderType:
m_AssemblyName: m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
m_AssetBundleProviderType: m_AssetBundleProviderType:
m_AssemblyName: m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
m_IgnoreUnsupportedFilesInBuild: 0 m_IgnoreUnsupportedFilesInBuild: 0
m_UniqueBundleIds: 0 m_UniqueBundleIds: 0
m_EnableJsonCatalog: 0 m_EnableJsonCatalog: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 22367121f1e8c39418227a00ab6877bd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,23 @@
fileFormatVersion: 2
guid: 566a779851d20d948a663e4cb01b8e7b
AudioImporter:
externalObjects: {}
serializedVersion: 8
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 341f3d7b33514da47b69ab68a13f2bdd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,479 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1916009440758343544
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7842148994097612765}
- component: {fileID: 5662922894713870611}
m_Layer: 5
m_Name: AttandacneCard
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7842148994097612765
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1916009440758343544}
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6137593998269892302}
- {fileID: 1739453391873918559}
- {fileID: 6881861328119094781}
- {fileID: 6477966706876128149}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &5662922894713870611
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1916009440758343544}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0ccf0e4e9b399b947af026e60210ac7c, type: 3}
m_Name:
m_EditorClassIdentifier:
texts:
- {fileID: 2154348327415490878}
- {fileID: 3795390191140945526}
--- !u!1 &2164266661880013643
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6881861328119094781}
- component: {fileID: 5115547727534354017}
- component: {fileID: 6821323360162967017}
m_Layer: 5
m_Name: i_reward
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6881861328119094781
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2164266661880013643}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7842148994097612765}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 80, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5115547727534354017
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2164266661880013643}
m_CullTransparentMesh: 1
--- !u!114 &6821323360162967017
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2164266661880013643}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 3d292f5288881c743b59b7c06859daa5, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &3621594037651821145
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6477966706876128149}
- component: {fileID: 5742067579212895676}
- component: {fileID: 3795390191140945526}
m_Layer: 5
m_Name: t_amount
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6477966706876128149
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3621594037651821145}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7842148994097612765}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 50}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5742067579212895676
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3621594037651821145}
m_CullTransparentMesh: 1
--- !u!114 &3795390191140945526
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3621594037651821145}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 000
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 3055b5c28f94e6c4ea6b9a379bb315a5, type: 2}
m_sharedMaterial: {fileID: -3574565475228871172, guid: 3055b5c28f94e6c4ea6b9a379bb315a5, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 50
m_fontSizeBase: 50
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 25
m_fontSizeMax: 100
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 4096
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &4791860367576933119
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6137593998269892302}
- component: {fileID: 6371725882489740998}
- component: {fileID: 6489550538156538477}
m_Layer: 5
m_Name: bg
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6137593998269892302
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4791860367576933119}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7842148994097612765}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6371725882489740998
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4791860367576933119}
m_CullTransparentMesh: 1
--- !u!114 &6489550538156538477
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4791860367576933119}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.427451, g: 0.35686275, b: 0.35686275, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: b0a7567624709ee45872c0e655845f2d, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &7910363018969805457
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1739453391873918559}
- component: {fileID: 208529976326955615}
- component: {fileID: 2154348327415490878}
m_Layer: 5
m_Name: t_day
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1739453391873918559
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7910363018969805457}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7842148994097612765}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 0, y: -50}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &208529976326955615
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7910363018969805457}
m_CullTransparentMesh: 1
--- !u!114 &2154348327415490878
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7910363018969805457}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "1\uC77C\uCC28"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 3055b5c28f94e6c4ea6b9a379bb315a5, type: 2}
m_sharedMaterial: {fileID: -3574565475228871172, guid: 3055b5c28f94e6c4ea6b9a379bb315a5, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 50
m_fontSizeBase: 50
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 25
m_fontSizeMax: 100
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 4096
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ff3f5d803131c674195b92a44d19187f
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,122 @@
using System.Collections.Generic;
using UnityEngine;
public enum eSound { s001_ButtonClick,
Max
}
public enum eBGM { Max }
public class SoundInfo : MonoBehaviourSingletonTemplate<SoundInfo>
{
float minDistance = 4f;
float maxDistance = 30f;
public AudioClip[] arr_clip, arr_bgm;
List<AudioSource> list_audiosource = new List<AudioSource>();
AudioSource BGM_AudioSource;
eBGM CurBGM;
float minVolume = 0.02f;
bool EnablePlay = true;
Dictionary<eSound, AudioClip> dic_clip = new Dictionary<eSound, AudioClip>();
Dictionary<eBGM, AudioClip> dic_bgmclip = new Dictionary<eBGM, AudioClip>();
private void Start()
{
DontDestroy();
for (eSound i = 0; i < eSound.Max; i++)
dic_clip.Add(i, arr_clip[(int)i]);
for (eBGM i = 0; i < eBGM.Max; i++)
dic_bgmclip.Add(i, arr_bgm[(int)i]);
}
public float Get_Volume(Vector3 _v, float _maxvol = 1f)
{
if (DSUtil.CheckNull(Camera.main)) return 0f;
float distance = Vector3.Distance(_v, Camera.main.transform.position);
var vol = distance < minDistance ? _maxvol : distance > maxDistance ? minVolume : _maxvol - (distance - minDistance) / (maxDistance - minDistance);
if (vol < minVolume) vol = minVolume;
//vol *= OptionInfo.Ins.slider_SFX.value;
return vol;
}
public void Play_OneShot(eSound _sound, float vol = 0.5f)
{
Play_OneShot(dic_clip[_sound], vol);
}
public AudioSource Play_OneShot(AudioClip _clip, float vol = 1f, bool _loop = false)
{
AudioSource temp = list_audiosource.Find(f => !f.isPlaying);
if (temp == null)
{
var go = new GameObject(list_audiosource.Count.ToString());
go.transform.SetParent(transform);
temp = go.AddComponent<AudioSource>();
list_audiosource.Add(temp);
}
temp.clip = _clip;
//temp.volume = (OptionInfo.Ins ? OptionInfo.Ins.slider_SFX.value : 1f) * vol;
temp.volume = vol;
temp.loop = _loop;
if (EnablePlay || _loop) temp.Play();
return temp;
}
public void Play_OneShot_byDistance(eSound _sound, Vector3 _v, float _maxvol = 1f)
{
Play_OneShot(_sound, Get_Volume(_v, _maxvol));
}
public AudioSource Play_OneShot_byDistance(AudioClip _clip, Vector3 _v, float _maxvol = 1f, bool _loop = false)
{
return Play_OneShot(_clip, Get_Volume(_v, _maxvol), _loop);
}
//public void Play_OneShot_3DSound(eSound _sound, GameObject _source, float vol = 1f)
//{
// var temp = _source.GetComponent<AudioSource>();
// if (temp == null)
// {
// temp = _source.AddComponent<AudioSource>();
// temp.rolloffMode = AudioRolloffMode.Linear;
// temp.minDistance = 1f;
// temp.maxDistance = 2f;
// }
// temp.clip = arr_clip[MyEnumToInt.Ins.Get_Int(_sound)];
// temp.volume = OptionInfo.Ins.slider_SFX.value;
// temp.Play();
//}
public void Play_BGM(eBGM _bgm)
{
if (CurBGM != _bgm)
{
CurBGM = _bgm;
if (BGM_AudioSource == null)
{
var go = new GameObject("BGM");
go.transform.SetParent(transform);
BGM_AudioSource = go.AddComponent<AudioSource>();
}
BGM_AudioSource.clip = dic_bgmclip[_bgm];
BGM_AudioSource.loop = true;
BGM_AudioSource.volume = 1f;// OptionInfo.Ins.slider_BGM.value;
BGM_AudioSource.Play();
}
}
public void Set_BGM_Volume(float _v) { if (BGM_AudioSource != null) BGM_AudioSource.volume = _v; }
public void Stop_BGM() { if (BGM_AudioSource != null) BGM_AudioSource.Pause(); }
public void RePlay_BGM() { if (BGM_AudioSource != null) BGM_AudioSource.Play(); }
public void Active_Sound(bool _active)
{
EnablePlay = _active;
if (EnablePlay)
{
RePlay_BGM();
}
else
{
Stop_BGM();
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: af75d903227f0034599ccffc8ad8976c

View File

@ -100,6 +100,7 @@ public static class MyUIUtil
buttonObject.AddComponent<Image>().sprite = AssetDatabase.LoadAssetAtPath<Sprite>(path_whitebg); buttonObject.AddComponent<Image>().sprite = AssetDatabase.LoadAssetAtPath<Sprite>(path_whitebg);
buttonObject.AddComponent<Button>(); buttonObject.AddComponent<Button>();
buttonObject.AddComponent<PlayClickSound_Only>();
// TextMeshPro-UGUI 생성 및 설정 // TextMeshPro-UGUI 생성 및 설정
GameObject textObject = new GameObject("btnName", typeof(TextMeshProUGUI)); GameObject textObject = new GameObject("btnName", typeof(TextMeshProUGUI));

View File

@ -1,17 +1,17 @@
//using Firebase.Auth;
//using Google;
using System.Collections; using System.Collections;
using TMPro; using TMPro;
using UnityEngine; using UnityEngine;
using UnityEngine.U2D; using UnityEngine.U2D;
#if UNITY_ANDROID public class TitleInfo : MonoBehaviour
using UnityEngine.Android;
#endif
public class TitleInfo : MyCoroutine
{ {
public TextMeshProUGUI label_msg, t_ver; public TextMeshProUGUI label_msg, t_ver;
public GameObject go_LobbyUI;
private void Awake()
{
go_LobbyUI.SetActive(false);
}
IEnumerator Start() IEnumerator Start()
{ {
@ -26,45 +26,10 @@ public class TitleInfo : MyCoroutine
label_msg.text = "로비로 진입 중입니다."; label_msg.text = "로비로 진입 중입니다.";
yield return null; yield return null;
//#if FGB_LIVE
// SRDebug.Instance.IsTriggerEnabled = false;
//#else
// SRDebug.Instance.IsTriggerEnabled = true;
//#endif
#if !UNITY_EDITOR && UNITY_ANDROID && !FGB_OneStore
if (!Application.version.Equals("9.9.9"))
if (Application.installerName != "com.android.vending")
{
Popup.Ins.Set(ePopupType.One, 2,
() => { Application.OpenURL("market://details?id=" + Application.identifier); DSUtil.Quit(); },
() => { Application.OpenURL("market://details?id=" + Application.identifier); DSUtil.Quit(); });
yield break;
}
#endif
#if UNITY_ANDROID
if (!Permission.HasUserAuthorizedPermission("android.permission.POST_NOTIFICATIONS"))
Permission.RequestUserPermission("android.permission.POST_NOTIFICATIONS");
#endif
#if !UNITY_EDITOR
// 파이어 베이스 초기화
Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => {
var dependencyStatus = task.Result;
if (dependencyStatus == Firebase.DependencyStatus.Available)
{
//FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);
}
else
{
Debug.LogError(DSUtil.Format( "Could not resolve all Firebase dependencies: {0}", dependencyStatus));
// Firebase Unity SDK is not safe to use here.
}
});
#endif
// 인앱 결제 정보 받아오기 // 인앱 결제 정보 받아오기
//label_msg.text = table_localtext.Ins.Get_Text(3); //label_msg.text = table_localtext.Ins.Get_Text(3);
yield return new WaitForSeconds(0.1f); yield return new WaitForSeconds(0.1f);
gameObject.SetActive(false);
go_LobbyUI.SetActive(true);
} }
} }

View File

@ -0,0 +1,16 @@
using TMPro;
public class AttandacneCard : CardBase
{
public TextMeshProUGUI[] texts; // 0 day, 1 보상갯수
attandancetabledata m_Data;
public override void Set<T>(T _base, int iLoop = -1, int idata = -1)
{
base.Set(_base, iLoop, idata);
m_Data = _base as attandancetabledata;
texts[0].text = $"{m_Data.n_Day}일차";
texts[1].text = m_Data.n_GachaAmount.ToString();
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 0ccf0e4e9b399b947af026e60210ac7c

View File

@ -0,0 +1,13 @@
public class AttandanceUI : uScrollViewMgr
{
public void Set()
{
gameObject.SetActive(true);
Set_ScrollView(table_attandance.Ins.Get_DataList());
}
public void OnClick_Get()
{
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f0ca48778d3ad694099a1d0ff3d7edbb

View File

@ -0,0 +1,14 @@
using UnityEngine;
public class LobbyUI : MonoBehaviourSingletonTemplate<LobbyUI>
{
[SerializeField] AttandanceUI m_AttandanceUI;
public void OnClick_Button(GameObject btn)
{
switch (btn.name)
{
case "btn_attendance": m_AttandanceUI.Set(); break;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: cad5682e6198cc74ebc76c1292280a66

View File

@ -0,0 +1,11 @@
using UnityEngine;
using UnityEngine.EventSystems;
public class PlayClickSound_Only : MonoBehaviour, IPointerUpHandler
{
public void OnPointerUp(PointerEventData eventData)
{
if (!DSUtil.CheckNull(SoundInfo.Ins))
SoundInfo.Ins.Play_OneShot(eSound.s001_ButtonClick, 1f);
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 4848326f7db925d4fbcdb35f789b75f5

View File

@ -26,7 +26,7 @@ MonoBehaviour:
m_warningsDisabled: 0 m_warningsDisabled: 0
m_defaultFontAsset: {fileID: 11400000, guid: 3055b5c28f94e6c4ea6b9a379bb315a5, type: 2} m_defaultFontAsset: {fileID: 11400000, guid: 3055b5c28f94e6c4ea6b9a379bb315a5, type: 2}
m_defaultFontAssetPath: Fonts & Materials/ m_defaultFontAssetPath: Fonts & Materials/
m_defaultFontSize: 40 m_defaultFontSize: 50
m_defaultAutoSizeMinRatio: 0.5 m_defaultAutoSizeMinRatio: 0.5
m_defaultAutoSizeMaxRatio: 2 m_defaultAutoSizeMaxRatio: 2
m_defaultTextMeshProTextContainerSize: {x: 20, y: 5} m_defaultTextMeshProTextContainerSize: {x: 20, y: 5}