public bool Compare(IdBehaviour idBehaviour) { if (idBehaviour.id == null) { return(false); } return(Compare(idBehaviour.id)); }
private void OnTriggerStay(Collider other) { otherBehaviourObj = other.GetComponent <IdBehaviour>(); if (otherBehaviourObj == null) { return; } otherIdObj = otherBehaviourObj.nameIdObj; CheckId(3); }