Comparing tags to an array of tags used to work…
public string[] validTargets = {"Player"};
void OnCollisionEnter(Collision hit) {
if (validTargets.Contains(hit.collider.tag)){
hit.collider.SendMessage("Hurt", pain, SendMessageOptions.DontRequireReceiver);
}
… but now, sometime time ago between 4.2 - 4.3, the “Contains” method doesn’t appear nor work anymore for the string array. So what am I suppose to use to replace the contains methods?