예제 #1
0
        } //END IsGazeFocusing

        //-------------------------------------------------------------------------------------//
        /// <summary>
        /// Check if the gaze system is currently focusing on an unselected block within this BlockGroup
        /// </summary>
        /// <param name="isGazeFocusingOnThis">The BlockGroup to check if there is a block that is being gazed at</param>
        /// <param name="checkNestedGroups">Should we also check all of the nested BlockGroups contained within?</param>
        /// <returns></returns>
        public bool IsGazeFocusing( BlockGroup isGazeFocusingOnThis, bool checkNestedGroups )
        //-------------------------------------------------------------------------------------//
        {
            if( gazeFocusingOnBlock != null )
            {
                foreach( Block block in isGazeFocusingOnThis.GetBlocks( null, checkNestedGroups ) )
                {
                    if( block != null && block == gazeFocusingOnBlock )
                    {
                        return true;
                    }
                }
            }

            return false;

        } //END IsGazeFocusing