Khoatv: fix sound

parent 3baa4757
...@@ -79,10 +79,7 @@ public class StarSystem : MonoBehaviour ...@@ -79,10 +79,7 @@ public class StarSystem : MonoBehaviour
} }
private void ReloadHome() private void ReloadHome()
{ {
AdsController.instance.ShowInter(() => Interface.instance.ExitToMenuHome();
{
Interface.instance.ExitToMenuHome();
});
} }
protected void Awake() protected void Awake()
{ {
...@@ -131,7 +128,7 @@ public class StarSystem : MonoBehaviour ...@@ -131,7 +128,7 @@ public class StarSystem : MonoBehaviour
// PlayerPrefs.SetInt(LEVEL, chapter); // PlayerPrefs.SetInt(LEVEL, chapter);
//} //}
for(int i=0; i<moons.Length; i++) for (int i = 0; i < moons.Length; i++)
{ {
moons[i].SetActive(false); moons[i].SetActive(false);
} }
...@@ -144,7 +141,7 @@ public class StarSystem : MonoBehaviour ...@@ -144,7 +141,7 @@ public class StarSystem : MonoBehaviour
planet.explosionCount.atmosphere.GetComponent<MeshRenderer>().sharedMaterial.SetColor("_AtmosphereColor", planetDatas[chapter].planetDatas[levelIndex].atmosphereColor); planet.explosionCount.atmosphere.GetComponent<MeshRenderer>().sharedMaterial.SetColor("_AtmosphereColor", planetDatas[chapter].planetDatas[levelIndex].atmosphereColor);
int totalTime = DataManager.Instance.levelContents[chapter][levelIndex].Time; int totalTime = DataManager.Instance.levelContents[chapter][levelIndex].Time;
int healhShield = DataManager.Instance.levelContents[chapter][levelIndex].Shield_HP; int healhShield = DataManager.Instance.levelContents[chapter][levelIndex].Shield_HP;
if(healhShield == 0) if (healhShield == 0)
{ {
shield.gameObject.SetActive(false); shield.gameObject.SetActive(false);
} }
......
...@@ -177,9 +177,12 @@ public class Interface : MonoBehaviour ...@@ -177,9 +177,12 @@ public class Interface : MonoBehaviour
public void ReturnToGame() public void ReturnToGame()
{ {
aim.SetActive(true); AdsController.instance.ShowInter(() =>
StartCoroutine(DelayUnPause()); {
//-------------- aim.SetActive(true);
StartCoroutine(DelayUnPause());
});
} }
IEnumerator DelayUnPause() IEnumerator DelayUnPause()
...@@ -202,11 +205,14 @@ public class Interface : MonoBehaviour ...@@ -202,11 +205,14 @@ public class Interface : MonoBehaviour
public void ExitToMenuHome() public void ExitToMenuHome()
{ {
MineralsPlayerPrefs(true); AdsController.instance.ShowInter(() =>
Time.timeScale = 1; {
DataManager.Instance.ShowCoin = true; MineralsPlayerPrefs(true);
CheckShowRate(0); Time.timeScale = 1;
UnityEngine.SceneManagement.SceneManager.LoadScene("home"); DataManager.Instance.ShowCoin = true;
CheckShowRate(0);
UnityEngine.SceneManagement.SceneManager.LoadScene("home");
});
} }
public void ExitToMenuWin() public void ExitToMenuWin()
...@@ -249,7 +255,7 @@ public class Interface : MonoBehaviour ...@@ -249,7 +255,7 @@ public class Interface : MonoBehaviour
if (Class_Controller.playerAlive == true) if (Class_Controller.playerAlive == true)
{ {
Inventory(); //Inventory();
} }
//-------------- //--------------
......
...@@ -50,9 +50,6 @@ public class OST : MonoBehaviour ...@@ -50,9 +50,6 @@ public class OST : MonoBehaviour
public void PlaySelectWeapon() public void PlaySelectWeapon()
{ {
audioSource1.PlayOneShot(selectWeapon); audioSource1.PlayOneShot(selectWeapon);
AdsController.instance.ShowInter(() => {
});
} }
public void PlayDeselectWeapon() public void PlayDeselectWeapon()
......
...@@ -38996,7 +38996,7 @@ PrefabInstance: ...@@ -38996,7 +38996,7 @@ PrefabInstance:
m_Modifications: m_Modifications:
- target: {fileID: 1411463341, guid: be52fa2f0a0d6604299802b6633e9420, type: 3} - target: {fileID: 1411463341, guid: be52fa2f0a0d6604299802b6633e9420, type: 3}
propertyPath: delay propertyPath: delay
value: 3.5 value: 3
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1199371425891559116, guid: be52fa2f0a0d6604299802b6633e9420, - target: {fileID: 1199371425891559116, guid: be52fa2f0a0d6604299802b6633e9420,
type: 3} type: 3}
...@@ -39473,6 +39473,150 @@ PrefabInstance: ...@@ -39473,6 +39473,150 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: 74868020, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 74868020, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 74868020, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 74868020, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 74868022, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 246368179, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 246368179, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 246368179, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 246368179, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 246368181, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 545963442, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 606323126, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 681525874, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 835879318, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 835879318, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 835879318, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 835879318, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 835879320, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1125146126, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1125146126, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1125146126, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1125146126, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1125146128, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1295190574, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1295190574, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1295190574, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1295190574, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1295190576, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1654799097, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1773817395, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1834672627, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1834672627, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1834672627, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1834672627, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1834672629, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1877728009, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, type: 3}
propertyPath: playeSoundOnclick
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1011976649899939479, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, - target: {fileID: 1011976649899939479, guid: 0a65ca5d691aad948b7d3ccd46ee2f72,
type: 3} type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
...@@ -39563,6 +39707,11 @@ PrefabInstance: ...@@ -39563,6 +39707,11 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0.000015258789 value: 0.000015258789
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3504742971198732980, guid: 0a65ca5d691aad948b7d3ccd46ee2f72,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3504742971484943690, guid: 0a65ca5d691aad948b7d3ccd46ee2f72, - target: {fileID: 3504742971484943690, guid: 0a65ca5d691aad948b7d3ccd46ee2f72,
type: 3} type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
...@@ -45026,7 +45175,7 @@ PrefabInstance: ...@@ -45026,7 +45175,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 469985644, guid: 24f4214e71ba46046859b31f7dec5af4, type: 3} - target: {fileID: 469985644, guid: 24f4214e71ba46046859b31f7dec5af4, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: -0.000000026858434 value: -0.000000030583724
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 469985645, guid: 24f4214e71ba46046859b31f7dec5af4, type: 3} - target: {fileID: 469985645, guid: 24f4214e71ba46046859b31f7dec5af4, type: 3}
propertyPath: m_Follow propertyPath: m_Follow
...@@ -45100,7 +45249,7 @@ PrefabInstance: ...@@ -45100,7 +45249,7 @@ PrefabInstance:
- target: {fileID: 7421222009779415704, guid: 24f4214e71ba46046859b31f7dec5af4, - target: {fileID: 7421222009779415704, guid: 24f4214e71ba46046859b31f7dec5af4,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: -0.000000026858434 value: -0.000000030583724
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7421222010078394949, guid: 24f4214e71ba46046859b31f7dec5af4, - target: {fileID: 7421222010078394949, guid: 24f4214e71ba46046859b31f7dec5af4,
type: 3} type: 3}
...@@ -79,9 +79,14 @@ public class SkillSelectionGUI : MonoBehaviour ...@@ -79,9 +79,14 @@ public class SkillSelectionGUI : MonoBehaviour
skillSelectionManager.SelectedID = ID; skillSelectionManager.SelectedID = ID;
skillSelectionManager.Reload(); skillSelectionManager.Reload();
skillSelectionManager.CheckSpecialTab(); skillSelectionManager.CheckSpecialTab();
OST.instance.PlaySelectWeapon();
AdsController.instance.ShowInter(() => {
});
} }
else else
{ {
OST.instance.PlayDeselectWeapon();
if (ID < 7) Interface.instance.ShowMoreAmmoPanel(ID); if (ID < 7) Interface.instance.ShowMoreAmmoPanel(ID);
} }
} }
......
...@@ -8,7 +8,7 @@ using UnityEngine.UI; ...@@ -8,7 +8,7 @@ using UnityEngine.UI;
public class UIButton : Button public class UIButton : Button
{ {
public bool playeSoundOnclick = true;
[SerializeField] [SerializeField]
public bool isScale = true; public bool isScale = true;
......
...@@ -36,7 +36,7 @@ Material: ...@@ -36,7 +36,7 @@ Material:
- Vector1_037422ac7c3343b3b7493dead063f9bb: 0.006 - Vector1_037422ac7c3343b3b7493dead063f9bb: 0.006
- Vector1_7fc372182bde42b39d4fce1ca0ef8b6e: 6.8 - Vector1_7fc372182bde42b39d4fce1ca0ef8b6e: 6.8
- Vector1_dcb7b53c006f40ef9ae4c2c1d71198be: 0.5 - Vector1_dcb7b53c006f40ef9ae4c2c1d71198be: 0.5
- _Alpha: 0.0040200003 - _Alpha: 0.00576
m_Colors: m_Colors:
- Color_7b883b4cd7c248a580d2475d1da9ed40: {r: 0, g: 65110.777, b: 259086.64, a: 0} - Color_7b883b4cd7c248a580d2475d1da9ed40: {r: 0, g: 65110.777, b: 259086.64, a: 0}
- _AtmosphereColor: {r: 0, g: 30840.47, b: 262144, a: 1} - _AtmosphereColor: {r: 0, g: 30840.47, b: 262144, a: 1}
......
...@@ -122,6 +122,6 @@ Material: ...@@ -122,6 +122,6 @@ Material:
m_Colors: m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1} - _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 1.5161833, g: 1.3663628, b: 0.77906656, a: 1.5281689} - _EmissionColor: {r: 1.1066365, g: 0.9972851, b: 0.56862754, a: 1.1153847}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
...@@ -27,10 +27,10 @@ EditorUserSettings: ...@@ -27,10 +27,10 @@ EditorUserSettings:
value: 22424703114646680c031c2e153010253f57282b3e3c2f33212c5260acb37a61adc333e4e8750a150903fd280d3d0d3acd2e0c06f9451f05181ae4 value: 22424703114646680c031c2e153010253f57282b3e3c2f33212c5260acb37a61adc333e4e8750a150903fd280d3d0d3acd2e0c06f9451f05181ae4
flags: 0 flags: 0
RecentlyUsedScenePath-7: RecentlyUsedScenePath-7:
value: 22424703114646743e294c0b1e25561e1f03016a1f3933313f2c5d00f2e1373dadd435ece93f2c733403e6324a2b0f36e613 value: 22424703114646743e294c0b1e25561e1f03016a1f3933313f2c5d00f2e1373dadd435ece93f2c73310de2394a2b0f36e613
flags: 0 flags: 0
RecentlyUsedScenePath-8: RecentlyUsedScenePath-8:
value: 22424703114646743e294c0b1e25561e1f03016a1f3933313f2c5d00f2e1373dadd435ece93f2c73310de2394a2b0f36e613 value: 22424703114646743e294c0b1e25561e1f03016a1f3933313f2c5d00f2e1373dadd435ece93f2c733403e6324a2b0f36e613
flags: 0 flags: 0
RecentlyUsedScenePath-9: RecentlyUsedScenePath-9:
value: 22424703114646743e294c0b1e25561e1f03016a1f3933313f2c5d00f2e1373dadd435ece93f2c733f0bfd2f10320e3ef603070cb81e04020517 value: 22424703114646743e294c0b1e25561e1f03016a1f3933313f2c5d00f2e1373dadd435ece93f2c733f0bfd2f10320e3ef603070cb81e04020517
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment