using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
public partial class HorseConfig : IConfigPostProcess
|
{
|
static Dictionary<int, int> itemUnlockHorseMap = new Dictionary<int, int>();
|
|
public void OnConfigParseCompleted()
|
{
|
itemUnlockHorseMap[UnlockItemID] = HorseID;
|
}
|
|
public static int GetItemUnLockHorse(int itemId)
|
{
|
if (itemUnlockHorseMap.ContainsKey(itemId))
|
{
|
return itemUnlockHorseMap[itemId];
|
}
|
|
return 0;
|
}
|
|
}
|