// Use this for initialization void Start() { dropItem.addAfterPickItems(this); // destroy it if no one pick this if (!nerverDestroy) { Destroy(gameObject, delayDestory); } }
private void Start() { //dropItem = GetComponent<DropItem>(); dropItem.addAfterPickItems(this); // destroy it if no one pick this if (!neverDestroy) { Destroy(gameObject, delayDestory); } }