Beispiel #1
0
        public virtual LeverPuzzleLever GetLever(int index)
        {
            LeverPuzzleLever lever = (LeverPuzzleLever)this.m_Levers[index];

            if (lever != null && !lever.Deleted)
            {
                return(lever);
            }
            return(null);
        }
Beispiel #2
0
        public virtual LeverPuzzleLever GetLever(int index)
        {
            LeverPuzzleLever lever = (LeverPuzzleLever)m_Levers[index];

            return(lever?.Deleted == false ? lever : null);
        }