Exemple #1
0
    public void SetType(PowerUpItemType wt)
    {
        ItemDefinition def = PowerUpManager.GetItemDefinition(wt);

        cubeRend.material.color = def.color;
        letter.text             = def.letter;
        type = wt;
    }
    static public ItemDefinition GetItemDefinition(PowerUpItemType itemType)
    {
        if (itemDict.ContainsKey(itemType))
        {
            return(itemDict[itemType]);
        }

        return(new ItemDefinition());
    }