private Vector3 GetInstancePosition(MyGUI3_1.GuiStat stat) { switch (stat) { case MyGUI3_1.GuiStat.Ball: return(((Component)this).get_transform().get_position()); case MyGUI3_1.GuiStat.BallRotate: return(((Component)this).get_transform().get_position()); case MyGUI3_1.GuiStat.BallRotatex4: return(((Component)this).get_transform().get_position()); case MyGUI3_1.GuiStat.Bottom: return(this.BottomPosition.get_transform().get_position()); case MyGUI3_1.GuiStat.Middle: return(((Component)this.MiddlePosition.get_transform().get_parent()).get_transform().get_position()); case MyGUI3_1.GuiStat.MiddleWithoutRobot: return(((Component)this.MiddlePosition.get_transform().get_parent()).get_transform().get_position()); case MyGUI3_1.GuiStat.Top: return(this.TopPosition.get_transform().get_position()); case MyGUI3_1.GuiStat.TopTarget: return(this.TopPosition.get_transform().get_position()); default: return(((Component)this).get_transform().get_position()); } }
private GameObject GetTargetObject(MyGUI3_1.GuiStat stat) { switch (stat) { case MyGUI3_1.GuiStat.Ball: return(this.Target); case MyGUI3_1.GuiStat.BallRotate: return(this.Target); case MyGUI3_1.GuiStat.Bottom: return(this.BottomPosition); case MyGUI3_1.GuiStat.Middle: this.MiddlePosition.get_transform().set_localPosition(this.defaultRobotPos); this.MiddlePosition.get_transform().set_localRotation(Quaternion.Euler(0.0f, 180f, 0.0f)); return(this.MiddlePosition); case MyGUI3_1.GuiStat.MiddleWithoutRobot: return(((Component)this.MiddlePosition.get_transform().get_parent()).get_gameObject()); case MyGUI3_1.GuiStat.Top: return(this.TopPosition); case MyGUI3_1.GuiStat.TopTarget: return(this.BottomPosition); default: return(((Component)this).get_gameObject()); } }
private void InstanceCurrent(MyGUI3_1.GuiStat stat) { switch (stat) { case MyGUI3_1.GuiStat.Ball: this.MiddlePosition.SetActive(false); this.InstanceEffect(((Component)this).get_transform().get_position()); break; case MyGUI3_1.GuiStat.BallRotate: this.MiddlePosition.SetActive(false); this.InstanceEffect(((Component)this).get_transform().get_position()); break; case MyGUI3_1.GuiStat.BallRotatex4: this.MiddlePosition.SetActive(false); this.InstanceEffect(((Component)this).get_transform().get_position()); break; case MyGUI3_1.GuiStat.Bottom: this.MiddlePosition.SetActive(false); this.InstanceEffect(this.BottomPosition.get_transform().get_position()); break; case MyGUI3_1.GuiStat.Middle: this.MiddlePosition.SetActive(true); this.InstanceEffect(((Component)this.MiddlePosition.get_transform().get_parent()).get_transform().get_position()); break; case MyGUI3_1.GuiStat.MiddleWithoutRobot: this.MiddlePosition.SetActive(false); this.InstanceEffect(this.MiddlePosition.get_transform().get_position()); break; case MyGUI3_1.GuiStat.Top: this.MiddlePosition.SetActive(false); this.InstanceEffect(this.TopPosition.get_transform().get_position()); break; case MyGUI3_1.GuiStat.TopTarget: this.MiddlePosition.SetActive(false); this.InstanceEffect(this.TopPosition.get_transform().get_position()); break; } }