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; } }
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; } }
public void SendLimitValue(LimitTypes Type) { LevelManager.GetLevelManager.Limit = Limit; LevelManager.GetLevelManager.Type = Type; }