Пример #1
0
    public void SetLimit(int value)
    {
        if (Limit + value > 0)
        {
            Limit += value;
        }
        int type = (int)Type;

        switch (type)
        {
        case 0:
            Type       = LimitTypes.Charge;
            pieceLimit = Limit;
            break;

        case 1:
            Type      = LimitTypes.Time;
            timeLimit = Limit;
            break;

        case 2:
            Type       = LimitTypes.Score;
            scoreLimit = Limit;
            break;

        default:
            break;
        }
    }
Пример #2
0
    public void SetType(int type)
    {
        switch (type)
        {
        case 0:
            Type  = LimitTypes.Charge;
            Limit = pieceLimit;
            break;

        case 1:
            Type  = LimitTypes.Time;
            Limit = timeLimit;
            break;

        case 2:
            Type  = LimitTypes.Score;
            Limit = scoreLimit;
            break;

        default:
            break;
        }
    }
Пример #3
0
 public void SendLimitValue(LimitTypes Type)
 {
     LevelManager.GetLevelManager.Limit = Limit;
     LevelManager.GetLevelManager.Type  = Type;
 }