Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master
1 files renamed
1 files deleted
1 files added
10 files modified
| | |
| | | m_PrefabInstance: {fileID: 0} |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_Name: PVEBg |
| | | m_Shader: {fileID: 10750, guid: 0000000000000000f000000000000000, type: 0} |
| | | m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} |
| | | m_ShaderKeywords: |
| | | m_LightmapFlags: 4 |
| | | m_EnableInstancingVariants: 0 |
| | |
| | | serializedVersion: 11 |
| | | mipmaps: |
| | | mipMapMode: 0 |
| | | enableMipMap: 1 |
| | | enableMipMap: 0 |
| | | sRGBTexture: 1 |
| | | linearTexture: 0 |
| | | fadeOut: 0 |
File was renamed from Assets/Resources/Music/选择buff后.mp3.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7038f3d098e09e24dae79641a76e7784 |
| | | guid: 28f2776f5338e0d44af75342f26e20da |
| | | AudioImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 6 |
| | |
| | | WaterTowerSkill,//冰淇淋技能 |
| | | WoodSkill,//玉米狙击子弹 |
| | | Upgrade,//合成 |
| | | Gold,//金币 |
| | | |
| | | } |
| | | public class AudioSourceManager : MonoBehaviour |
| | |
| | | case AudioEnum.Upgrade: |
| | | Play("合成", true); |
| | | break; |
| | | case AudioEnum.Gold: |
| | | Play("金币", true); |
| | | break; |
| | | } |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public void StopBGAudio() |
| | | { |
| | | if (!audioSourceList[0].isPlaying) |
| | | if (audioSourceList[0].isPlaying) |
| | | { |
| | | audioSourceList[0].Stop(); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | IconList[i].Reset(); |
| | | } |
| | | |
| | | AudioSourceManager.Ins?.Play(AudioEnum.BuffAppear); |
| | | } |
| | | |
| | | private void OnDisable() |
| | |
| | | { |
| | | EndlessMaskUI.instance.Show(); |
| | | gameObject.SetActive(true); |
| | | AudioSourceManager.Ins?.Play(AudioEnum.ChooseBuff); |
| | | } |
| | | |
| | | public void HideBuffUI() |
| | |
| | | IconList[i].SetName(list[i].Config.name); |
| | | IconList[i].SetEffect(list[i].Config.brief); |
| | | IconList[i].SetRare(list[i].Config.rare); |
| | | IconList[i].SetIsGold(list[i].EffectType == EndlessBuffEffectType.GoldAdd); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | float cashToOpen = TowerPlacementGridEndless.GRID_OPENCASH; |
| | | if (EndlessLevelManager.instance.Currency.currentCurrency < cashToOpen) |
| | | { |
| | | AudioSourceManager.Ins.Play(AudioEnum.UIDisable); |
| | | return; |
| | | } |
| | | |
| | | // 减少Cash并开启相应塔防管理器的兵线 |
| | | bool bsucc = EndlessLevelManager.instance.Currency.TryPurchase((int)cashToOpen); |
| | |
| | | |
| | | public void OnClick() |
| | | { |
| | | AudioSourceManager.Ins.Play(AudioEnum.ChooseBuff); |
| | | //判断是否是金钱 |
| | | if (isGold) |
| | | { |
| | | AudioSourceManager.Ins.Play(AudioEnum.Gold); |
| | | } |
| | | else |
| | | { |
| | | AudioSourceManager.Ins.Play(AudioEnum.UI); |
| | | } |
| | | |
| | | if (OnSelectBuffCompleted != null) |
| | | OnSelectBuffCompleted(Index); |
| | |
| | | Name.color = EndlessBuffData.GetColorByRare(rare); |
| | | } |
| | | |
| | | bool isGold;//是否是金币BUFF |
| | | public void SetIsGold(bool isGold) |
| | | { |
| | | this.isGold = isGold; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置选中状态,做个缓动播放粒子特效 |
| | |
| | | /// <param name="myScore">789220</param> |
| | | public void SetData(string waveInfo, int myScore) |
| | | { |
| | | AudioSourceManager.Ins.StopBGAudio();//进来后停止播放BGM |
| | | |
| | | _waveInfo = waveInfo; |
| | | _myScore = myScore; |
| | | isFirstStart = true;//首次启动下载到数据执行动效 |
| | |
| | | { |
| | | var temp = Math.Floor(value); |
| | | scoreText.text = temp + ""; |
| | | }, 0, _myScore, 1.71f)); |
| | | }, 0, _myScore, 1.4f)); |
| | | agentTweenSeq.AppendCallback(StartLoadLargeData); |
| | | |
| | | tsLight = transform.Find("ImageLight"); |