public void ChangePlayerCurrentProp(PropType type, float value, PropEventDelegate hander) { if (type == PropType.Pressure) { playerCurrentProp.Pressure = (int)value; BattleUIPanel.ShowChangePressureSlider(hander); } }
public void SetPlayerBattleSliderPos() { GameObject panel = GUIManager.FindPanel("BattleUIPanel"); if (!panel.activeSelf || panel == null) { GUIManager.ShowView("BattleUIPanel"); } BattleUIPanel.SetBattlePressSliderPos(); }
public void ShowRoundStart() { GameObject panel = GUIManager.FindPanel("BattleUIPanel"); if (!panel.activeSelf || panel == null) { GUIManager.ShowView("BattleUIPanel"); } BattleUIPanel.RoundStart(); }
public void SetUI(bool start) { if (start) { StartCoroutine(StartPanels(leftPanel, 2.0f)); StartCoroutine(StartPanels(rightPanel, 2.0f)); setCards(); } else { BattleUIPanel left = leftPanel.GetComponent <BattleUIPanel>(); BattleUIPanel right = rightPanel.GetComponent <BattleUIPanel>(); StartCoroutine(EndPanels(leftPanel, 2.0f, left.defaultPosition.x)); StartCoroutine(EndPanels(rightPanel, 2.0f, right.defaultPosition.x)); } }
public void ShowPlayerBattleSlider(float neeedValue, PropEventDelegate OnSliderFished = null) { GameObject panel = GUIManager.FindPanel("BattleUIPanel"); if (!panel.activeSelf) { GUIManager.ShowView("BattleUIPanel"); } BattleUIPanel.ShowChangePlayerBattlePressureSlider(neeedValue, OnSliderFished); GameObject player = GameObject.FindWithTag("Player"); if (neeedValue == 0) { return; } GUIManager.ShowView("ExpressionEffectPanel"); ExpressionEffectPanel.ShowPressEffect(player, (int)neeedValue); }