Exemplo n.º 1
0
 void OnTriggerExit2D(Collider2D collidingObject)
 {
     if (collidingObject.gameObject.CompareTag("CameraFrontCollider"))
     {
         mapManager.AddNextLevelSegment(transform.localPosition);
         Destroy(gameObject);
     }
 }