private void Awake() { DontDestroyOnLoad(this); lock (_actions) { _instance = this; } }
private void OnDestroy() { lock (_actions) { _instance = null; } }