Ejemplo n.º 1
0
    void Dying()
    {
        var collider = this.gameObject.GetComponent <BoxCollider2D>();

        collider.enabled = false;
        canShoot         = false;

        if (Time.time - deathTime > 3f)
        {
            //gameUiController.GameOver();
            Destroy(this.gameObject);
            UnityEngine.Debug.Log("Me morí");
            scenesController.LoadEndScene();
        }
    }
    private void FixedUpdate()
    {
        ActiveEnemiesCounter();
        SpawnEnemyWaves();
        if (enemyWaveCounter >= 9)
        {
            scenesController.LoadEndScene();
        }

        /*
         * if (newEnemy1LineAvailable == true)
         * {
         *  NewEnemy1Line();
         * }
         * if (newEnemy2LineAvailable == true)
         * {
         *  //NewEnemy2Line();
         * }
         */
    }