Exemplo n.º 1
0
    private Color GetColor(WeaponSelectState state)
    {
        switch (state)
        {
        case WeaponSelectState.Confirmed:   return(confirmedColor);

        case WeaponSelectState.Highlighted: return(normalColor);

        case WeaponSelectState.Unselected:  return(halfColor);
        }
        return(normalColor);
    }
Exemplo n.º 2
0
    public void SetState(WeaponSelectState state, bool instant = false)
    {
        Color targetColor = GetColor(state);

        TriggerColorChange(targetColor, instant);
    }