Example #1
0
        public virtual void SetGameDifficult(EGameDifficult diff)
        {
            GameDifficult = diff;
            if (diff == EGameDifficult.Easy)
            {
                SetGameDifficultNormal();
            }
            else if (diff == EGameDifficult.Medium)
            {
                SetGameDifficultMedium();
            }
            else if (diff == EGameDifficult.Hard)
            {
                SetGameDifficultHard();
            }
            else
            {
                throw new ArgumentOutOfRangeException("diff");
            }

            UpdateWaveSpawnSize();
        }
Example #2
0
		public virtual void SetGameDifficult(EGameDifficult diff) {
			GameDifficult = diff;
			if (diff == EGameDifficult.Easy) {
				SetGameDifficultNormal();
			} else if (diff == EGameDifficult.Medium) {
				SetGameDifficultMedium();
			} else if (diff == EGameDifficult.Hard) {
				SetGameDifficultHard();
			} else {
				throw new ArgumentOutOfRangeException("diff");
			}

			UpdateWaveSpawnSize();
		}