void OnTriggerEnter(Collider other) { if(other.tag =="Player"){ s = other.gameObject.GetComponent<Ship>(); s.AddPowerUp(this); } }