void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player") { if (playerShooting != null) { playerShooting.AddColorMode(colorType); Destroy(gameObject); } } }