Example #1
0
 public void ChangePlayerCurrentProp(PropType type, float value, PropEventDelegate hander)
 {
     if (type == PropType.Pressure)
     {
         playerCurrentProp.Pressure = (int)value;
         BattleUIPanel.ShowChangePressureSlider(hander);
     }
 }
Example #2
0
    public void SetPlayerBattleSliderPos()
    {
        GameObject panel = GUIManager.FindPanel("BattleUIPanel");

        if (!panel.activeSelf || panel == null)
        {
            GUIManager.ShowView("BattleUIPanel");
        }
        BattleUIPanel.SetBattlePressSliderPos();
    }
Example #3
0
    public void ShowRoundStart()
    {
        GameObject panel = GUIManager.FindPanel("BattleUIPanel");

        if (!panel.activeSelf || panel == null)
        {
            GUIManager.ShowView("BattleUIPanel");
        }
        BattleUIPanel.RoundStart();
    }
Example #4
0
 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));
     }
 }
Example #5
0
    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);
    }