private void DestroyLocker() { if (_locker == null) { return; } Object.Destroy(_locker.gameObject); _locker = null; }
private void CreateLocker() { if (_locker != null) { DestroyLocker(); } _locker = _container.InstantiateComponentOnNewGameObject <TutorialLocker>("TutorialLocker"); _locker.transform.SetParent(_pageContentContainer, false); }