Advertisement
UnityCoder_Jay

Teleport.cs

Jan 5th, 2023 (edited)
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class Teleport : MonoBehaviour {
  4.     [SerializeField] private Transform destination;
  5.  
  6.     public Transform GetDestination() {
  7.         return Destination;
  8.     }
  9. }
  10.  
  11. // Player.cs was also updated, so check that if you're going to be using this code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement