0
I’m creating a little basketball game, but I’m having trouble making the points system in this case (2 and 3).
Right now I’m trying with Colliders and I’m having a hard time putting the two together:
public class ponto2 : MonoBehaviour {
void OnTriggerEnter(Collider other)
{
ScoringSystem.theScore += 2;
}
public class ponto3 : MonoBehaviour {
void OnTriggerEnter(Collider other)
{
ScoringSystem.theScore += 3;
}
How do I add a Collider that when you touch it change to 3 instead of 2.