void Awake() { if (m_instance == null) { m_instance = this; } else { if (m_instance != this) { Destroy(gameObject); } } SpawnCharacter(); }
void OnDestroy() { m_instance = null; }