示例#1
0
    private void OnTriggerExit2D(Collider2D p_collider)
    {
        if (p_collider.gameObject.CompareTag("SeedsPackage") && m_outlined)
        {
            m_hoveringPackage = null;

            m_outlined = false;
            UpdateOutline();
        }
    }
示例#2
0
    private void OnTriggerEnter2D(Collider2D p_collider)
    {
        if (p_collider.gameObject.CompareTag("SeedsPackage"))
        {
            m_hoveringPackage = p_collider.gameObject.GetComponent <SeedsPackageUI>();

            m_outlined = true;
            UpdateOutline();
        }
    }
示例#3
0
    private void UpdateFlower(SeedsPackageUI p_package)
    {
        m_removeSampleButton.gameObject.SetActive(true);

        m_spriteDissolver.SetFloat("_CutOutAmount", 1f);
        m_flowerRenderer.sprite = p_package.Flower;

        m_appearEffect = m_spriteDissolver.DOFloat(0f, "_CutOutAmount", m_appearEffectDuration);

        m_sampleBadge.color = p_package.Color.DarkerShade().SetA(1f);
        m_sampleBadge.gameObject.SetActive(true);
    }