20 lines
368 B
C#
20 lines
368 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BF_PlayerReset : MonoBehaviour
|
|
{
|
|
public GameObject player;
|
|
public Transform playerPos;
|
|
|
|
void OnEnable()
|
|
{
|
|
player.transform.position = playerPos.position;
|
|
}
|
|
void Start()
|
|
{
|
|
player.transform.position = playerPos.position;
|
|
}
|
|
|
|
}
|