|
using UnityEngine;
|
|
|
|
namespace Managers
|
|
{
|
|
public class LocalPlayerManager : MonoBehaviour
|
|
{
|
|
public static PlayerManager Instance { get; set; }
|
|
|
|
private void Awake()
|
|
{
|
|
if (Instance == null)
|
|
{
|
|
Instance = null;
|
|
DontDestroyOnLoad(gameObject);
|
|
}
|
|
else
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
}
|
|
} |