Пример #1
0
        public static SceneObject GetCorrespondingSceneObject(string goName)
        {
            foreach (SceneObject obj in ShowSceneObjects)
            {
                if (obj.name == goName)
                {
                    return(obj.Clone());
                }
            }

            SceneObject emptyObj = new SceneObject();

            emptyObj.Clear();
            return(emptyObj);
        }