Exemple #1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (collision.gameObject.tag == "Player")
     {
         Debug.Log("Map Move");
         MoveMap?.Invoke(this, type);
     }
 }
Exemple #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == "Player")
     {
         Debug.Log("Map Move");
         MoveMap?.Invoke(this, type);
     }
 }