Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle
| | |
| | | /// </summary> |
| | | private static void InitData() |
| | | { |
| | | int guide = PlayerPrefs.GetInt("GemBattleGuide"); |
| | | GameConfig.IsNewbie = guide == 0; |
| | | GameConfig.IsNewbieStart = GameConfig.IsNewbie; |
| | | EndlessEnemyData.Init(); |
| | | EndlessBuffData.Init(); |
| | | EndlessBossData.Init(); |
| | |
| | | { |
| | | foreach (EndlessPortConfig data in waveData) |
| | | { |
| | | if (waves[data.Config.tunel - 1].LineState == EndlessWaveLineState.Spawning) |
| | | waves[data.Config.tunel - 1].PauseWave(); |
| | | } |
| | | } |
| | |
| | | { |
| | | foreach (EndlessPortConfig data in waveData) |
| | | { |
| | | if (waves[data.Config.tunel - 1].LineState == EndlessWaveLineState.Spawning) |
| | | waves[data.Config.tunel - 1].RestartWave(); |
| | | } |
| | | } |
| | |
| | | |
| | | public class JsonDataInit : MonoBehaviour |
| | | { |
| | | // Start is called before the first frame update |
| | | void Awake() |
| | | private void OnEnable() |
| | | { |
| | | JsonDataCenter.allData = new Dictionary<string, List<tabledata>>(); |
| | | JsonDataReader.Instance.StartRead(JsonDataCenter.ProcessInitDataLoad); |
| | |
| | | |
| | | private void CheckIsNewbie() |
| | | { |
| | | int guide = PlayerPrefs.GetInt("GemBattleGuide"); |
| | | GameConfig.IsNewbie = guide == 0; |
| | | GameConfig.IsNewbieStart = GameConfig.IsNewbie; |
| | | |
| | | if (GameConfig.IsNewbie) |
| | | { |
| | | Debug.Log("开始新手引导"); |
| | |
| | | curTime = UPDATE_TIME; |
| | | } |
| | | |
| | | |
| | | IEnumerator LoadScene() |
| | | { |
| | | async = SceneManager.LoadSceneAsync(GameConfig.NextSceneName); |