메인 화면 버튼 클릭 시 1초 딜레이 추가
This commit is contained in:
@@ -219,7 +219,8 @@ RectTransform:
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Children:
|
||||
- {fileID: 3757522227616513290}
|
||||
m_Father: {fileID: 7114312418154409345}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
@@ -237,7 +238,7 @@ AudioSource:
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 8300000, guid: 289d4e594986798498d5c331b821fbd4, type: 3}
|
||||
m_audioClip: {fileID: 0}
|
||||
m_PlayOnAwake: 0
|
||||
m_Volume: 1
|
||||
m_Pitch: 1
|
||||
@@ -486,9 +487,8 @@ RectTransform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 2486503543037853382}
|
||||
- {fileID: 6147450528475637372}
|
||||
- {fileID: 3757522227616513290}
|
||||
- {fileID: 2486503543037853382}
|
||||
m_Father: {fileID: 291657315787126367}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@@ -530,7 +530,7 @@ RectTransform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6371053127936218335}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
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
|
||||
@@ -538,7 +538,7 @@ RectTransform:
|
||||
- {fileID: 2066853826154585915}
|
||||
- {fileID: 2289668262598961504}
|
||||
- {fileID: 360608318618800707}
|
||||
m_Father: {fileID: 7114312418154409345}
|
||||
m_Father: {fileID: 2486503543037853382}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
@@ -627,18 +627,6 @@ MonoBehaviour:
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 1005971612728675762}
|
||||
m_TargetAssemblyTypeName: TON.TitleUI, Assembly-CSharp
|
||||
m_MethodName: OnClickStartButton
|
||||
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_Target: {fileID: 6848335913990854717}
|
||||
m_TargetAssemblyTypeName: UnityEngine.AudioSource, UnityEngine
|
||||
m_MethodName: PlayOneShot
|
||||
@@ -651,6 +639,18 @@ MonoBehaviour:
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
- m_Target: {fileID: 1005971612728675762}
|
||||
m_TargetAssemblyTypeName: TON.TitleUI, Assembly-CSharp
|
||||
m_MethodName: OnClickStartButton
|
||||
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
|
||||
--- !u!1 &8457603573555983225
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -8,8 +8,23 @@ namespace TON
|
||||
{
|
||||
public CharaterSelectUI charaterSelectUI;
|
||||
|
||||
AudioSource _buttonAudio;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_buttonAudio = gameObject.AddComponent<AudioSource>();
|
||||
DontDestroyOnLoad(this.transform.parent.gameObject);
|
||||
}
|
||||
|
||||
public void OnClickStartButton()
|
||||
{
|
||||
StartCoroutine(StartButtonDelay());
|
||||
}
|
||||
|
||||
IEnumerator StartButtonDelay()
|
||||
{
|
||||
yield return new WaitForSeconds(1f); // 1초 대기
|
||||
|
||||
// Main.Singleton?.ChangeScene(SceneType.Ingame);
|
||||
UIManager.Hide<TitleUI>(UIList.TitleUI);
|
||||
|
||||
@@ -34,7 +49,6 @@ namespace TON
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void OnClickExitButton()
|
||||
{
|
||||
Main.Singleton?.SystemQuit();
|
||||
|
||||
Reference in New Issue
Block a user