﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "Data", menuName = "BattleRoyale/Icon Colors", order = 1)]
public class IconColors : ScriptableObject
{
    public Color BasicColor, NormalColor, UniqueColor, SuperColor, ExtraordinaryColor;

    public Color GetRarityColor(Rarity _rarity)
    {
        // Get the color depending on our input rarity
        switch (_rarity)
        {
            case (Rarity.Basic):
                return BasicColor;
            case (Rarity.Normal):
                return NormalColor;
            case (Rarity.Unique):
                return UniqueColor;
            case (Rarity.Super):
                return SuperColor;
            case (Rarity.Extraordinary):
                return ExtraordinaryColor;
        }

        // For safety, in case we receive an unexpected rarity value, return the basic color
        return BasicColor;
    }
}
