Makmake the icon purchase sound be used
This commit is contained in:
@@ -3681,6 +3681,135 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RectMask2D
|
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RectMask2D
|
||||||
m_Padding: {x: -8, y: -5, z: -8, w: -5}
|
m_Padding: {x: -8, y: -5, z: -8, w: -5}
|
||||||
m_Softness: {x: 0, y: 0}
|
m_Softness: {x: 0, y: 0}
|
||||||
|
--- !u!1 &709625972
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 709625974}
|
||||||
|
- component: {fileID: 709625973}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: IconPurchaseSound
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!82 &709625973
|
||||||
|
AudioSource:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 709625972}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
OutputAudioMixerGroup: {fileID: 0}
|
||||||
|
m_audioClip: {fileID: 0}
|
||||||
|
m_Resource: {fileID: 8300000, guid: dedee00ae858abf8cbb153c89a821212, type: 3}
|
||||||
|
m_PlayOnAwake: 0
|
||||||
|
m_Volume: 1
|
||||||
|
m_Pitch: 1
|
||||||
|
Loop: 0
|
||||||
|
Mute: 0
|
||||||
|
Spatialize: 0
|
||||||
|
SpatializePostEffects: 0
|
||||||
|
Priority: 128
|
||||||
|
DopplerLevel: 1
|
||||||
|
MinDistance: 1
|
||||||
|
MaxDistance: 500
|
||||||
|
Pan2D: 0
|
||||||
|
rolloffMode: 0
|
||||||
|
BypassEffects: 0
|
||||||
|
BypassListenerEffects: 0
|
||||||
|
BypassReverbZones: 0
|
||||||
|
rolloffCustomCurve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
panLevelCustomCurve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
spreadCustomCurve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
reverbZoneMixCustomCurve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
--- !u!4 &709625974
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 709625972}
|
||||||
|
serializedVersion: 2
|
||||||
|
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: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &709989120
|
--- !u!1 &709989120
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -11510,6 +11639,7 @@ MonoBehaviour:
|
|||||||
optionsPanelPriceRangeMaxInput: {fileID: 1332173810}
|
optionsPanelPriceRangeMaxInput: {fileID: 1332173810}
|
||||||
optionsPanelSearchForToggle: {fileID: 1406400831}
|
optionsPanelSearchForToggle: {fileID: 1406400831}
|
||||||
optionsPanelSearchForInputField: {fileID: 1874724295}
|
optionsPanelSearchForInputField: {fileID: 1874724295}
|
||||||
|
iconPurchaseSound: {fileID: 709625973}
|
||||||
priceRangeEnabled: 0
|
priceRangeEnabled: 0
|
||||||
priceRangeMin: 10
|
priceRangeMin: 10
|
||||||
priceRangeMax: 250
|
priceRangeMax: 250
|
||||||
@@ -11525,3 +11655,4 @@ SceneRoots:
|
|||||||
- {fileID: 1027954170}
|
- {fileID: 1027954170}
|
||||||
- {fileID: 501495254}
|
- {fileID: 501495254}
|
||||||
- {fileID: 1724563863}
|
- {fileID: 1724563863}
|
||||||
|
- {fileID: 709625974}
|
||||||
|
|||||||
@@ -28,15 +28,16 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
|||||||
public TMP_InputField optionsPanelPriceRangeMaxInput;
|
public TMP_InputField optionsPanelPriceRangeMaxInput;
|
||||||
public Toggle optionsPanelSearchForToggle;
|
public Toggle optionsPanelSearchForToggle;
|
||||||
public TMP_InputField optionsPanelSearchForInputField;
|
public TMP_InputField optionsPanelSearchForInputField;
|
||||||
|
public AudioSource iconPurchaseSound;
|
||||||
|
|
||||||
public bool priceRangeEnabled = false;
|
private bool priceRangeEnabled = false;
|
||||||
public string priceRangeMin = "10";
|
private string priceRangeMin = "10";
|
||||||
public string priceRangeMax = "250";
|
private string priceRangeMax = "250";
|
||||||
|
|
||||||
public bool searchForEnabled = false;
|
private bool searchForEnabled = false;
|
||||||
public string searchForValue = "";
|
private string searchForValue = "";
|
||||||
|
|
||||||
public bool anyChanges = false;
|
private bool anyChanges = false;
|
||||||
|
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
@@ -210,6 +211,8 @@ public class IconMarketplaceDownloadIcon : MonoBehaviour
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
marketplaceIconStorage.Balance -= data.Price;
|
marketplaceIconStorage.Balance -= data.Price;
|
||||||
|
iconPurchaseSound.Stop();
|
||||||
|
iconPurchaseSound.Play();
|
||||||
}
|
}
|
||||||
var list = marketplaceIconStorage.Data.ToList();
|
var list = marketplaceIconStorage.Data.ToList();
|
||||||
list.Add(data);
|
list.Add(data);
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ public class IconMarketplaceManager : MonoBehaviour
|
|||||||
|
|
||||||
internal void SwitchPanel(int panelIndex)
|
internal void SwitchPanel(int panelIndex)
|
||||||
{
|
{
|
||||||
|
downloadPanelScript.iconPurchaseSound.Stop();
|
||||||
switch (panelIndex)
|
switch (panelIndex)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user