コード例 #1
0
        private void OnTriggerExit2D(Collider2D _collision)
        {
            mg_bc_Penguin component = _collision.gameObject.GetComponent <mg_bc_Penguin>();

            if (component != null)
            {
                m_penguin = null;
                m_unloadArrow.SetActive(value: false);
            }
        }
コード例 #2
0
        private void OnTriggerEnter2D(Collider2D _collision)
        {
            mg_bc_Penguin component = _collision.gameObject.GetComponent <mg_bc_Penguin>();

            if (component != null)
            {
                m_penguin = component;
                m_arrowOn.SetActive(value: true);
                m_arrowOff.SetActive(value: false);
            }
        }