Ejemplo n.º 1
0
    public void AddItem(Transform Item)
    {
        if (item != null)
        {
            return;
        }

        item = Item;
        item.SetParent(itemHolder);
        item.localPosition = new Vector3();
        item.localRotation = new Quaternion();
        collector          = item.GetComponent <Collector>();
        weapon             = item.GetComponent <Weapon>();
        if (collector != null)
        {
            collector.Collected(true);
        }
    }