Exemple #1
0
    void Awake()
    {
        singleton = this;
        TextAsset ta = Resources.Load(resourceName, typeof(TextAsset)) as TextAsset;

        if (ta != null)
        {
            skills = ta.GetXml().FindSkills().ToArray();
        }
        else
        {
            skills = new Skill[0];
            Debug.Log("Skills list not found");
        }
    }