// Use this for initialization
 void Start()
 {
     spawner = gameObject.GetComponent<Spawn_Control> ();
     pira = Resources.Load ("Prefabs/pira") as GameObject;
     kingPira = Resources.Load ("Prefabs/king_pira") as GameObject;
     currEnemy = pira;
     currBoss = kingPira;
     currSpawnRate = currEnemy.GetComponent<Enemy> ().spawnRate;
     StartCoroutine (spawnEnemy ());
 }
Exemple #2
0
 private void Awake()
 {
     Instance = this;
 }