void Awake() { if (pInstance == null) { pInstance = this; } else { Destroy(gameObject); } }
private void OnDestroy() { pInstance = null; }