Hi guys,first ı m sory for my bad english but ı will explain my problem basicly.
I did a card game, I want to match card with collider but ı dont know how can ı will do it.
For example
spade 2 - spade 2 should be match on screen,and must be destroy or invisible,ı need help.
Unity - Scripting API: Collider.OnCollisionEnter(Collision) then you should check your card value.
In every card script make an int with the value.
In OnCollisionEnter you should check the collider.GetComponent().CardValue if is the same with actual CardValue and then destroy both or whatever you want to do
1 Like