Esempio n. 1
0
        /// <summary>
        /// Find selectable GameObjects.
        /// </summary>
        public virtual void FindSelectableObjects()
        {
            SelectableObjects.Clear();
            SelectableTargets.Clear();
            Compatibility.GetComponentsInChildren(this, true, SelectableTargets);

            for (int i = 0; i < SelectableTargets.Count; i++)
            {
                SelectableObjects.Add((SelectableTargets[i] as Component).gameObject);
            }
        }