Main menu hover button sound
This commit is contained in:
parent
ed56823425
commit
72c546c619
|
@ -754,6 +754,7 @@ GameObject:
|
||||||
- component: {fileID: 7906126060215011239}
|
- component: {fileID: 7906126060215011239}
|
||||||
- component: {fileID: 5705393787726349510}
|
- component: {fileID: 5705393787726349510}
|
||||||
- component: {fileID: 5308712115076517159}
|
- component: {fileID: 5308712115076517159}
|
||||||
|
- component: {fileID: 8738149538462739344}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: ButtonSoundTrigger
|
m_Name: ButtonSoundTrigger
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
@ -827,7 +828,63 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3}
|
m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Delegates: []
|
m_Delegates:
|
||||||
|
- eventID: 0
|
||||||
|
callback:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 8738149538462739344}
|
||||||
|
m_TargetAssemblyTypeName: ButtonSFXMainMenu, Assembly-CSharp
|
||||||
|
m_MethodName: OnHover
|
||||||
|
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
|
||||||
|
- eventID: 4
|
||||||
|
callback:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 8738149538462739344}
|
||||||
|
m_TargetAssemblyTypeName: ButtonSFXMainMenu, Assembly-CSharp
|
||||||
|
m_MethodName: OnClick
|
||||||
|
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: 4926619423751613970}
|
||||||
|
m_TargetAssemblyTypeName: SceneTransition, Assembly-CSharp
|
||||||
|
m_MethodName: StartAnimation
|
||||||
|
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!114 &8738149538462739344
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3071691549249124292}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 87eccaba0a132524bb187f10cd72fd20, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &3594381340902575366
|
--- !u!1 &3594381340902575366
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1321,6 +1378,7 @@ GameObject:
|
||||||
- component: {fileID: 4889487297324017978}
|
- component: {fileID: 4889487297324017978}
|
||||||
- component: {fileID: 8912176582833889536}
|
- component: {fileID: 8912176582833889536}
|
||||||
- component: {fileID: 3965009370811905376}
|
- component: {fileID: 3965009370811905376}
|
||||||
|
- component: {fileID: 7874091329006424548}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: ButtonSoundTrigger
|
m_Name: ButtonSoundTrigger
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
@ -1394,7 +1452,63 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3}
|
m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Delegates: []
|
m_Delegates:
|
||||||
|
- eventID: 0
|
||||||
|
callback:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 7874091329006424548}
|
||||||
|
m_TargetAssemblyTypeName: ButtonSFXMainMenu, Assembly-CSharp
|
||||||
|
m_MethodName: OnHover
|
||||||
|
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
|
||||||
|
- eventID: 4
|
||||||
|
callback:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 7874091329006424548}
|
||||||
|
m_TargetAssemblyTypeName: ButtonSFXMainMenu, Assembly-CSharp
|
||||||
|
m_MethodName: OnClick
|
||||||
|
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: 7850709709159180180}
|
||||||
|
m_TargetAssemblyTypeName: SwitchScene, Assembly-CSharp
|
||||||
|
m_MethodName: QuitGame
|
||||||
|
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!114 &7874091329006424548
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6978922133552470091}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 87eccaba0a132524bb187f10cd72fd20, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &7328269471814291505
|
--- !u!1 &7328269471814291505
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -2,15 +2,15 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ButtonSFX : MonoBehaviour
|
public class ButtonSFXMainMenu : MonoBehaviour
|
||||||
{
|
{
|
||||||
public void OnHover()
|
public void OnHover()
|
||||||
{
|
{
|
||||||
//AudioManager.PlaySound("");
|
AudioManager.PlaySound("button", Vector3.zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnClick()
|
public void OnClick()
|
||||||
{
|
{
|
||||||
|
AudioManager.PlaySound("button", Vector3.zero);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue