My original object is the only one that remains after I press play. All the prefabs I made automatically delete themselves? It only happens with this one specific object.
#pragma strict
var coinEffect : Transform;
function OnTriggerEnter (info : Collider)
{
if (info.tag == "Player")
{
Debug.Log("AddCoinCounter!!!!!");
var effect = Instantiate(coinEffect, transform.position, transform.rotation);
Destroy(effect.gameObject, 3);
Destroy(gameObject);
}
}