Exemplo n.º 1
0
    private void Trigger(bool toggle)
    {
        RankUpConditionData data = new RankUpConditionData();

        data.m_Switch    = toggle;
        data.m_Condition = condition;

        m_Event.Trigger(data);
    }
Exemplo n.º 2
0
    private void HideWindow()
    {
        RankUpConditionData data = new RankUpConditionData();

        data.m_Switch = false;
        m_DisplayRankUpRequirementEvent.Trigger(data);

        CardSelectOptionsData data2 = new CardSelectOptionsData();

        data2.m_Switch = false;
        m_DisplayCardOptionEvent.Trigger(data2);
    }
Exemplo n.º 3
0
    public void Show(GameEventData eventData)
    {
        RankUpConditionData data = eventData.CastDataType <RankUpConditionData>();

        if (data == null)
        {
            return;
        }

        if (data.m_Switch)
        {
            gameObject.SetActive(true);

            //Debug.Log("Condtion Receive ["+data.m_Condition+"]");
            //Debug.Log("String 1 : [" + data.m_Condition.GetStringOfCondition1() + "]");
            //Debug.Log("String 2 : [" + data.m_Condition.GetStringOfCondition2() + "]");
            m_condition1Text.text = data.m_Condition.GetStringOfCondition1();
            m_condition2Text.text = data.m_Condition.GetStringOfCondition2();
        }
        else
        {
            gameObject.SetActive(false);
        }
    }