少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-27 be5d159c18c1aea1fd9f310bcedb7afa05923e10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
    }
 
}