Advertisement
Guest User

Asi?

a guest
Dec 3rd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. void OnCollisionEnter2D(Collision2D collision){
  2.     if (!haColisionadoConElJugador && collision.collider.gameObject.name == "ComprobadorSuelo")
  3.     {
  4.         NotificationCenter.DefaultCenter().PostNotification(this, "IncrementarPuntos", 1);
  5.         haColisionadoConElJugador = true;
  6.         Debug.Log(collision.collider.gameObject.name);
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement