private void ShowResult() { this.pattern.SetActive(false); Flower[] flowers = this.kago.GetComponentsInChildren <Flower>(); for (int i = 0; i < flowers.Length; i++) { Flower flower = flowers[i]; flower.DefaultShader(); flower.SeasonColor(); } BoidsConfig config = this.GetComponent <BoidsConfig>(); GameObject container = config.GetBoidsContainer(); Leaf[] leafs = container.GetComponentsInChildren <Leaf>(); for (int i = 0; i < leafs.Length; i++) { GameObject.Destroy(leafs[i].gameObject); } GameObject.Destroy(this.player.gameObject); this.kagoCover.SetActive(false); this.transition.frames = 120; this.transition.transitionIn = false; this.transition.animate = true; }