public void OpenContent(CharactorUIBtnType type) { if (type == this.current) { return; } switch (type) { case CharactorUIBtnType.Element: if (this.elementUI == null) { this.elementUI = (UIManagerControl.Instance.OpenUI("ElementUI", base.get_transform(), false, UIType.FullScreen) as ElementUI); this.elementUI.ResetUI(); } else { this.elementUI.Show(true); } break; case CharactorUIBtnType.Rise: if (this.riseUI == null) { this.riseUI = (UIManagerControl.Instance.OpenUI("RiseUI", base.get_transform(), false, UIType.FullScreen) as RiseUI); } else { this.riseUI.Show(true); } break; } this.HideContent(type); }
private void GoToElement(int element) { ElementUI elementUI = UIManagerControl.Instance.OpenUI("ElementUI", UINodesManager.NormalUIRoot, true, UIType.FullScreen) as ElementUI; elementUI.ResetUI(); elementUI.ResetTypeUI(element, 1); }
void Awake() { enelemnt_red_ = GameObject.Find("ElementRed").GetComponent<ElementUI>(); enelemnt_blue_ = GameObject.Find("ElementBlue").GetComponent<ElementUI>(); enelemnt_green_ = GameObject.Find("ElementGreen").GetComponent<ElementUI>(); key_z_effect_ = GameObject.Find("KeyZ").GetComponent<ActivateKeyEffect>(); key_x_effect_ = GameObject.Find("KeyX").GetComponent<ActivateKeyEffect>(); key_c_effect_ = GameObject.Find("KeyC").GetComponent<ActivateKeyEffect>(); message_text_ = GameObject.Find("Message").GetComponent<UnityEngine.UI.Text>(); }
private void OnClickElement(GameObject sender) { if (!SystemOpenManager.IsSystemClickOpen(2, 0, true)) { return; } ElementUI elementUI = UIManagerControl.Instance.OpenUI("ElementUI", null, true, UIType.FullScreen) as ElementUI; elementUI.ResetUI(); }
void Awake() { InPlay = false; audio_source_ = GetComponent<AudioSource>(); element_type_ = ElementType.Red; fire_point_z_ = new Vector3(-1f, 0.5f, 0f); fire_point_x_ = new Vector3( 0f, 0.5f, 0f); fire_point_c_ = new Vector3( 1f, 0.5f, 0f); enelemnt_red_ = GameObject.Find("ElementRed").GetComponent<ElementUI>(); enelemnt_blue_ = GameObject.Find("ElementBlue").GetComponent<ElementUI>(); enelemnt_green_ = GameObject.Find("ElementGreen").GetComponent<ElementUI>(); current_bullet_prefab_ = bulletRed_; key_z_effect_ = GameObject.Find("KeyZ").GetComponent<ActivateKeyEffect>(); key_x_effect_ = GameObject.Find("KeyX").GetComponent<ActivateKeyEffect>(); key_c_effect_ = GameObject.Find("KeyC").GetComponent<ActivateKeyEffect>(); }