public void PickUpHit(Transform racer, Transform other) { if(other.gameObject.tag == "PickUp") { player = racer.GetComponent<PlayerPickUp>(); thePickUp = other.GetComponent<PickUp>(); thePickUp.UseRefresh(); if(player.PickUpQueue.Length < 1) { switch(thePickUp.MyType) { case "Turbo": player.PickUpQueue = new string[1]; player.PickUpQueue[0] = "Turbo"; break; case "Forcefield": player.PickUpQueue = new string[1]; player.PickUpQueue[0] = "Forcefield"; break; default: break; } } } }