Files
VR-WuKong/Assets/ThirdParty/BruteForce/Scripts/BF_PlayerReset.cs
2025-11-14 18:44:06 +08:00

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;
}
}