24 lines
419 B
C#
24 lines
419 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class RespawnManager : MonoBehaviour
|
||
|
{
|
||
|
private Vector3 respawnPoint;
|
||
|
|
||
|
public void setRespawnPoint(Vector3 _respawnPoint)
|
||
|
{
|
||
|
respawnPoint = _respawnPoint;
|
||
|
}
|
||
|
|
||
|
public Vector3 getRespawnPoint()
|
||
|
{
|
||
|
return respawnPoint;
|
||
|
}
|
||
|
|
||
|
private void Update()
|
||
|
{
|
||
|
Debug.Log(respawnPoint);
|
||
|
}
|
||
|
}
|