Example #1
0
    public void RefillPower(int value, int target)
    {
        //_soundManager.PlayRefillScore();

        switch (LimitType)
        {
        case (int)LimitTypes.Time:
            _turnManager.AddTime(value * 2, target);
            break;

        case (int)LimitTypes.Score:
            ScoreObject[target].Score += value * 2;
            break;

        case (int)LimitTypes.Charge:
            ScoreObject[target].UpdateCharge(-value * 4);
            break;

        default:
            break;
        }
    }