using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; namespace BNG { /// /// A marker for valid teleport destinations /// public class TeleportDestination : MonoBehaviour { /// /// Where the player will be teleported to /// [Tooltip("Where the player will be teleported to")] public Transform DestinationTransform; /// /// Snap player to this rotation? /// + [Tooltip("Snap player to this rotation?")] public bool ForcePlayerRotation = false; [Tooltip("Called when a player uses the teleporter to enter this destination.")] public UnityEvent OnPlayerTeleported; } }