Hi. Everybody.
I am trying to destroy an AssetBundle into my scene, but I haven’t a success. What is it wrong? I need to instantiate my enemy in a variable and after I can destroy it.
This is an example
//Before show
GameObject myEnemy = (GameObject)bundle.LoadAsset("enemy");
Instantiate (myEnemy, new Vector3 (coordX, coordY, coordZ), Quaternion.identity);
//After Destroy
GameObject myEnemy = Instantiate(myEnemy);
Destroy(myEnemy);
Thank You