Example #1
0
    private void SetupBuffsAndDebuffs(MapSquare square)
    {
        if (square.GetEnemyBuffs().Count <= 0)
        {
            enemyBuffIcon.color = new Color(0.5f, 0.5f, 0.5f, 1);
        }
        else
        {
            enemyBuffIcon.color = new Color(1, 1, 1, 1);
        }

        if (square.GetEnemyDebuffs().Count <= 0)
        {
            enemyDebuffIcon.color = new Color(0.5f, 0.5f, 0.5f, 1);
        }
        else
        {
            enemyDebuffIcon.color = new Color(1, 1, 1, 1);
        }
    }