public void OnTriggerEnter2D(Collider2D other) { bool foundColour = false; if (other.tag == "Player") { SimplePlayer player = other.GetComponent <SimplePlayer>(); if (!foundColour) { player.addColour(colourRGB); } au.Play(); Destroy(gameObject); } }