31 lines
611 B
C#
31 lines
611 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(menuName = "GameConfig")]
|
|
public class GameConfig : ConfigBase<GameConfig>
|
|
{
|
|
public bool IsAutoLevel;
|
|
public bool IsDebug;
|
|
|
|
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;
|
|
} |