示例#1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (teleporterManager.canTeleport && isSelected)
     {
         (Teleporter other, int otherID) = teleporterManager.GetTeleporterFromSelection(id, true);
         Vector3 location = other.transform.position;
         teleporterManager.TeleportCollider(collision, location);
     }
 }