35 lines
		
	
	
		
			683 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			683 B
		
	
	
	
		
			C#
		
	
	
	
|  | using System; | |||
|  | using System.Collections; | |||
|  | using System.Collections.Generic; | |||
|  | using UnityEngine; | |||
|  | 
 | |||
|  | [CreateAssetMenu(menuName = "GameConfig")] | |||
|  | public class GameConfig : ConfigBase<GameConfig> | |||
|  | { | |||
|  |     public bool IsDebug; | |||
|  | 
 | |||
|  |     public int LevelCoinBase; | |||
|  |     public int LevelCoinGrow; | |||
|  | 
 | |||
|  |     public int BlockMaxLevel; | |||
|  |     public float UnitSpeed; | |||
|  | 
 | |||
|  |     public List<string> LevelDataStrs; | |||
|  | 
 | |||
|  |     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; | |||
|  | } |