private void Awake() { //GameObject mainCam = GameObject.Find("Main Camera"); //orange = mainCam.GetComponent<OompaLoompa>(); OompaLoompa[] oranges = GameObject.FindObjectsOfType <OompaLoompa>(); orange = oranges[0]; GameObject.FindObjectOfType <Camera>(); }
public static List <IEnemy> SetupEnemyList(Player player) { if (player.Level >= 1) { ScreamingShadow screamingShadow = new ScreamingShadow(); ManWithoutFace manWithoutFace = new ManWithoutFace(); enemyList.Add(screamingShadow); enemyList.Add(manWithoutFace); } if (player.Level >= 2) { AManWithAHorseFace aManWithAHorseFace = new AManWithAHorseFace(); GrinningToothlessHag grinningToothlessHag = new GrinningToothlessHag(); enemyList.Add(grinningToothlessHag); enemyList.Add(aManWithAHorseFace); } if (player.Level >= 3) { AbominableCreature abominableCreature = new AbominableCreature(); ANameLessHorror aNameLessHorror = new ANameLessHorror(); enemyList.Add(aNameLessHorror); enemyList.Add(abominableCreature); } if (player.Level >= 4) { MaliciousGhost maliciousGhost = new MaliciousGhost(); SnelHest snelHest = new SnelHest(); enemyList.Add(maliciousGhost); enemyList.Add(snelHest); } if (player.Level >= 5) { OompaLoompa oompaLoompa = new OompaLoompa(); GarglingGoblin garglingGoblin = new GarglingGoblin(); enemyList.Add(oompaLoompa); enemyList.Add(garglingGoblin); } if (player.Level >= 6) { EliteManWithoutFace eliteManWithoutFace = new EliteManWithoutFace(); EliteScreamingShadow eliteScreamingShadow = new EliteScreamingShadow(); enemyList.Add(eliteManWithoutFace); enemyList.Add(eliteScreamingShadow); } if (player.Level >= 7) { EliteAManWithAHorseFace eliteAManWithAHorseFace = new EliteAManWithAHorseFace(); EliteGrinningToothlessHag eliteGrinningToothlessHag = new EliteGrinningToothlessHag(); enemyList.Add(eliteAManWithAHorseFace); enemyList.Add(eliteGrinningToothlessHag); } if (player.Level >= 8) { EliteGarglingGoblin eliteGarglingGoblin = new EliteGarglingGoblin(); EliteOompaLoompa eliteOompaLoompa = new EliteOompaLoompa(); enemyList.Add(eliteGarglingGoblin); enemyList.Add(eliteOompaLoompa); } return(enemyList); }