void OnTriggerEnter2D(Collider2D col) { Player_Movement player = col.GetComponent <Player_Movement>(); if (col.gameObject.tag == "Player") { player.Enableshield(); } Destroy(this.gameObject); }