void Start() { if (bolt != null) { bolt.OnBoltOpened += () => { if (roundProvider != null && roundProvider.Count() == 0) { bolt.Lock(); } }; } }