예제 #1
0
        protected override bool Prepare(GameObject gameObject)
        {
            Container template = HomeImprovementUtils.FindContainerTemplate(gameObject);

            if (template == null)
            {
                return(false);
            }

            return(Prepare(gameObject, template, gameObject.transform.localPosition));
        }
        public int PrepareScene(Scene scene)
        {
            if (Disabled)
            {
                return(0);
            }

            int count = 0;

            foreach (GameObject eachGameObject in HomeImprovementUtils.GetSceneObjects(scene, new ScenePreparerFilter(Accept)))
            {
                if (Prepare(eachGameObject))
                {
                    count++;
                }
            }

            return(count);
        }