| | |
| | | GameObject go = Instantiate(Resources.Load<GameObject>("UI/Final/FinalPanel"), GameObject.Find("MainUI").transform); |
| | | FinalPanel panelUI = go.GetComponent<FinalPanel>(); |
| | | panelUI.SetData($"成绩 {EndlessLevelManager.instance.CurrentLevel}关 {EndlessLevelManager.instance.WaveManager.CurrentWaveIndex}波", EndlessScoreData.CurrentSocre); |
| | | |
| | | panelUI.SetPlayEffectAC(PlayEffect); |
| | | GameObject.Find("BottomUI").GetComponent<Canvas>().enabled = false; |
| | | return; |
| | | |
| | |
| | | GameObject particleSystemObject = GameObject.Find("ParticleSystemObject"); |
| | | effectObj.transform.SetParent(particleSystemObject.transform, false); |
| | | effectObj.transform.localPosition = new Vector3(0, 0, 36.6f); |
| | | effectObj.transform.localScale = new Vector3(3, 3, 3); |
| | | effectObj.transform.localScale = new Vector3(6, 6, 6); |
| | | } |
| | | |
| | | ParticleSystem ps = effectObj.transform.GetChild(0).GetComponent<ParticleSystem>(); |