void Init() { s_Player = GameObject.Find("Stage8").transform.FindChild("Player").GetComponent <PlayerControl>(); s_Tower = GameObject.Find("Stage8").transform.FindChild("Tower").GetComponent <Tower>(); s_Ove = GameObject.Find("Stage8").transform.FindChild("Ove").GetComponent <Ove>(); s_Flower1 = GameObject.Find("Stage8").transform.FindChild("SmallFlower1").GetComponent <Flower>(); s_Flower2 = GameObject.Find("Stage8").transform.FindChild("SmallFlower2").GetComponent <Flower>(); s_Flower3 = GameObject.Find("Stage8").transform.FindChild("SmallFlower3").GetComponent <Flower>(); s_Switch = GameObject.Find("Stage8").transform.FindChild("Switch").GetComponent <Switch>(); s_Switch1 = GameObject.Find("Stage8").transform.FindChild("Switch2").GetComponent <Switch>(); s_RailStep = GameObject.Find("Stage8").transform.FindChild("RailStep").GetComponent <RailStep>(); s_StageManager = GameObject.Find("Stage").GetComponent <StageManager>(); s_Player.Init(); s_Player.transform.position = new Vector3(3.6f, -33.3f, 0); s_Tower.Init(); s_Ove.Init(); s_Ove.transform.position = new Vector3(16, -35.8f, -1); s_Flower1.Init(); s_Flower2.Init(); s_Flower3.Init(); s_Switch.Init(); s_Switch1.Init(); s_RailStep.Init(); }
void Init() { s_Player = GameObject.Find("Stage9").transform.FindChild("Player").GetComponent <PlayerControl>(); s_Ove = GameObject.Find("Stage9").transform.FindChild("Ove").GetComponent <Ove>(); s_Ladder = GameObject.Find("Stage9").transform.FindChild("Ladder").GetComponent <Ladder>(); s_Flower1 = GameObject.Find("Stage9").transform.FindChild("SmallFlower1").GetComponent <Flower>(); s_Flower2 = GameObject.Find("Stage9").transform.FindChild("SmallFlower2").GetComponent <Flower>(); s_Flower3 = GameObject.Find("Stage9").transform.FindChild("SmallFlower3").GetComponent <Flower>(); s_Tower = GameObject.Find("Stage9").transform.FindChild("Tower").GetComponent <Tower>(); s_RailStep1 = GameObject.Find("Stage9").transform.FindChild("RailStep1").GetComponent <RailStep>(); t_TimeStep1 = GameObject.Find("Stage9").transform.FindChild("TimeStep1").transform; t_TimeStep2 = GameObject.Find("Stage9").transform.FindChild("TimeStep2").transform; s_StageManager = GameObject.Find("Stage").GetComponent <StageManager>(); s_Switch = GameObject.Find("Stage9").transform.FindChild("Switch").GetComponent <Switch>(); s_Switch2 = GameObject.Find("Stage9").transform.FindChild("Switch2").GetComponent <Switch>(); s_Switch3 = GameObject.Find("Stage9").transform.FindChild("Switch3").GetComponent <Switch>(); s_Switch4 = GameObject.Find("Stage9").transform.FindChild("Switch4").GetComponent <Switch>(); s_RotateStep = GameObject.Find("Stage9").transform.FindChild("ShortRotateStep").GetComponent <RotateStep>(); s_Player.Init(); s_Player.transform.position = new Vector3(3.5f, -32.9f, 0); s_Ove.Init(); s_Ove.transform.position = new Vector3(9, -35.6f, -1); s_Ladder.Init(); s_Flower1.Init(); s_Flower2.Init(); s_Flower3.Init(); s_Tower.Init(); s_RailStep1.Init(); s_Switch.Init(); s_Switch2.Init(); s_Switch3.Init(); s_Switch4.Init(); s_RotateStep.Init(); s_Tower.gameObject.SetActive(false); t_TimeStep1.gameObject.SetActive(false); t_TimeStep2.gameObject.SetActive(false); }