111
This commit is contained in:
19
Assets/ThirdParty/BruteForce/Scripts/BF_PlayerReset.cs
vendored
Normal file
19
Assets/ThirdParty/BruteForce/Scripts/BF_PlayerReset.cs
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user