Advertisement
Wolverine_X-Man

Player.cs

Mar 5th, 2021
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System;
  2. using UnityEngine;
  3.  
  4. public class Player : MonoBehaviour
  5. {
  6.     [SerializeField] private Vector3 startPosition;
  7.    
  8.     // Start is called before the first frame update
  9.     void Start()
  10.     {
  11.         /*transform.position = startPosition;*/
  12.     }
  13.  
  14.     void Update()
  15.     {
  16.         transform.position = startPosition;
  17.     }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement