| 
									
										
										
										
											2022-05-23 13:39:59 +00:00
										 |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Collections; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using UnityEngine; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | [CreateAssetMenu(menuName = "GameConfig")] | 
					
						
							|  |  |  |  | public class GameConfig : ConfigBase<GameConfig> | 
					
						
							|  |  |  |  | { | 
					
						
							| 
									
										
										
										
											2022-06-08 13:23:44 +00:00
										 |  |  |  |     public bool IsAutoLevel; | 
					
						
							| 
									
										
										
										
											2022-07-04 11:17:39 +00:00
										 |  |  |  |     public bool UseDiamond; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     public bool DifferNear; | 
					
						
							|  |  |  |  |     public bool DifferFar; | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-23 13:39:59 +00:00
										 |  |  |  |     public bool IsDebug; | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-04 11:17:39 +00:00
										 |  |  |  |     public float FailRewardRatio = 0.5f; | 
					
						
							|  |  |  |  |     public int SceneCount = 4; | 
					
						
							| 
									
										
										
										
											2022-05-23 13:39:59 +00:00
										 |  |  |  |     public int BlockMaxLevel; | 
					
						
							|  |  |  |  |     public float UnitSpeed; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     public List<CardData> CardList; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     public CardData GetCardData(string pCardID) | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         return CardList.Find(pItem => pItem.CardID.Equals(pCardID)); | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | [Serializable] | 
					
						
							|  |  |  |  | public class CardData | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     public string CardID; | 
					
						
							|  |  |  |  |     public int GroupNum; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     public int MaxHp; | 
					
						
							|  |  |  |  |     public int Damage; | 
					
						
							|  |  |  |  | } |