Beispiel #1
0
    private void GrabSkill(GameObject item)
    {
        SkillContainer container = item.GetComponent <SkillContainer>();

        if (container != null)
        {
            skillsManager.AddSkill(container.getSkill(), gameObject.transform.parent.gameObject.transform.parent.gameObject);
        }

        item.SetActive(false);
    }