Example #1
0
        public bool ResetPrefabInstances(string prefabName, Node instanceRootNode) {
            bool reset = instanceRootNode.ResetByPrefab(prefabName, this);

            if (!(this is ReferencedBehavior)) {
                foreach(Node child in this.Children) {
                    reset |= child.ResetPrefabInstances(prefabName, instanceRootNode);
                }
            }

            return reset;
        }