20 lines
390 B
C#
20 lines
390 B
C#
using UnityEngine;
|
|
|
|
public class CharacterSelectionData : MonoBehaviour
|
|
{
|
|
public static CharacterSelectionData Instance;
|
|
|
|
public string SelectedCharacter;
|
|
|
|
private void Awake()
|
|
{
|
|
if (Instance != null && Instance != this)
|
|
{
|
|
Destroy(gameObject);
|
|
return;
|
|
}
|
|
|
|
Instance = this;
|
|
DontDestroyOnLoad(gameObject);
|
|
}
|
|
} |