Example #1
0
    static public RefSkill Get(int _id)
    {
        RefSkill r = null;

        if (!RefDataManager.Instance.skill.TryGetValue(_id, out r))
        {
            WDebug.Log(string.Format("Failed to get skil data by id:<color=yellow>{0}</color> ", _id));
        }

        return(r);
    }
    void Start()
    {
        RefDataManager.Instance.Init();
        RefSkill hitData = RefSkill.Get(1);

        Debug.Log(
            hitData.SkillId + "\r\n" +
            hitData.SkillName + "\r\n"
            + hitData.Radius + "\r\n"
            + hitData.PostSkillId + "\r\n"
            );
    }