Exemplo n.º 1
0
    void Start()
    {
        manager = gameObject.AddComponent(typeof(EquipmentManager)) as EquipmentManager;

        EquipmentManager temp = game.GetNPCEquipment();

        foreach (KeyValuePair <Equipable, Color> item in temp.items)
        {
            manager.AddItem(item.Key, item.Value);
        }

        manager.materials = temp.materials;
        manager.AddMaterials();
        Destroy(GameObject.FindGameObjectWithTag("Game"));
    }