Exemplo n.º 1
0
    private void Start()
    {
        Time.timeScale = 1.0f;
        mySpawnInvoice = new SpawnInvoice();

        PopulateEnemyLib();
        SpawnPlayer();


        //ad-hoc ordering instead of j-son, which can be done now
        mySpawnInvoice.Add(EnemyType.Exploder, 10);

        DeployEnemies();
    }
Exemplo n.º 2
0
    public static void GameOver()
    {
        Time.timeScale = 0.0f;
        player.gameObject.SetActive(false);


        //restartbuttonSpawn
        EnemyGameObjectLib.Clear();
        mySpawnInvoice = null;
        //foreach (GameObject item in EnemyList) {
        //    if (item != null) {
        //        Destroy(item);
        //    }
        //}

        SceneManager.LoadScene(0);
    }