public List <Enemy> getEnemies(int floor) { List <Enemy> enemies = new List <Enemy>(); if (floor == 0) { enemies.Add(TutorialEnemy.Create()); } else if (floor == 15) { enemies.Add(MiniBoss.Create(16)); enemies.Add(MiniBoss.Create(25)); enemies.Add(MiniBoss.Create(36)); } else if (floor == 30) { enemies.Add(MiniBoss.Create(26)); enemies.Add(MiniBoss.Create(27)); enemies.Add(MiniBoss.Create(28)); } else if (floor == 45) { enemies.Add(MiniBoss.Create(11)); enemies.Add(MiniBoss.Create(13)); } else if (floor == 46) { enemies.Add(MiniBoss.Create(17)); enemies.Add(MiniBoss.Create(19)); } else if (floor == 47) { enemies.Add(MiniBoss.Create(64)); enemies.Add(MiniBoss.Create(81)); } else if (floor == 48) { enemies.Add(MiniBoss.Create(89)); enemies.Add(MiniBoss.Create(97)); } else if (floor == 49) { enemies.Add(MiniBoss.Create(3)); enemies.Add(MiniBoss.Create(6)); enemies.Add(MiniBoss.Create(9)); } else if (floor == 50) { enemies.Add(FinalBoss.Create()); } else { addNormalEnemies(floor, ref enemies); } return(enemies); }
//======================================================================================= // > Start And Update < //======================================================================================= private void Start() { _player = GameObject.FindGameObjectWithTag("Player"); _playerStats = _player.GetComponent <Player>(); if (gameObject.GetComponent <TutorialEnemy>()) { _tutorialEnemy = gameObject.GetComponent <TutorialEnemy>(); } }
private bool TutorialEnemyHit() { return(TutorialEnemy.WasHit()); }