25 lines
432 B
C#
25 lines
432 B
C#
using UnityEngine;
|
|
|
|
public class WorldManager : MonoBehaviour
|
|
{
|
|
public static WorldManager Instance { get; private set; }
|
|
|
|
private void Awake()
|
|
{
|
|
if (Instance == null)
|
|
{
|
|
Instance = this;
|
|
DontDestroyOnLoad(gameObject);
|
|
Initialize();
|
|
}
|
|
else
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
|
|
|
|
public static void Initialize()
|
|
{
|
|
}
|
|
} |